Lines Matching refs:comm_str
11 struct comm_str { struct
21 static struct comm_str *comm_str__get(struct comm_str *cs) in comm_str__get() argument
29 static void comm_str__put(struct comm_str *cs) in comm_str__put()
40 static struct comm_str *comm_str__alloc(const char *str) in comm_str__alloc()
42 struct comm_str *cs; in comm_str__alloc()
60 struct comm_str *__comm_str__findnew(const char *str, struct rb_root *root) in __comm_str__findnew()
64 struct comm_str *iter, *new; in __comm_str__findnew()
69 iter = rb_entry(parent, struct comm_str, rb_node); in __comm_str__findnew()
96 static struct comm_str *comm_str__findnew(const char *str, struct rb_root *root) in comm_str__findnew()
98 struct comm_str *cs; in comm_str__findnew()
117 comm->comm_str = comm_str__findnew(str, &comm_str_root); in comm__new()
118 if (!comm->comm_str) { in comm__new()
128 struct comm_str *new, *old = comm->comm_str; in comm__override()
135 comm->comm_str = new; in comm__override()
145 comm_str__put(comm->comm_str); in comm__free()
151 return comm->comm_str->str; in comm__str()