Lines Matching refs:comm_str
12 struct comm_str {
22 static struct comm_str *comm_str__get(struct comm_str *cs)
30 static void comm_str__put(struct comm_str *cs)
41 static struct comm_str *comm_str__alloc(const char *str)
43 struct comm_str *cs;
61 struct comm_str *__comm_str__findnew(const char *str, struct rb_root *root)
65 struct comm_str *iter, *new;
70 iter = rb_entry(parent, struct comm_str, rb_node);
97 static struct comm_str *comm_str__findnew(const char *str, struct rb_root *root)
99 struct comm_str *cs;
118 comm->comm_str = comm_str__findnew(str, &comm_str_root);
119 if (!comm->comm_str) {
129 struct comm_str *new, *old = comm->comm_str;
136 comm->comm_str = new;
146 comm_str__put(comm->comm_str);
152 return comm->comm_str->str;