Lines Matching refs:comm_str
7 struct comm_str { struct
16 static struct comm_str *comm_str__get(struct comm_str *cs) in comm_str__get() argument
23 static void comm_str__put(struct comm_str *cs) in comm_str__put()
32 static struct comm_str *comm_str__alloc(const char *str) in comm_str__alloc()
34 struct comm_str *cs; in comm_str__alloc()
51 static struct comm_str *comm_str__findnew(const char *str, struct rb_root *root) in comm_str__findnew()
55 struct comm_str *iter, *new; in comm_str__findnew()
60 iter = rb_entry(parent, struct comm_str, rb_node); in comm_str__findnew()
92 comm->comm_str = comm_str__findnew(str, &comm_str_root); in comm__new()
93 if (!comm->comm_str) { in comm__new()
98 comm_str__get(comm->comm_str); in comm__new()
105 struct comm_str *new, *old = comm->comm_str; in comm__override()
113 comm->comm_str = new; in comm__override()
123 comm_str__put(comm->comm_str); in comm__free()
129 return comm->comm_str->str; in comm__str()