Lines Matching refs:comm_str
6 struct comm_str { struct
15 static void comm_str__get(struct comm_str *cs) in comm_str__get() argument
20 static void comm_str__put(struct comm_str *cs) in comm_str__put()
29 static struct comm_str *comm_str__alloc(const char *str) in comm_str__alloc()
31 struct comm_str *cs; in comm_str__alloc()
46 static struct comm_str *comm_str__findnew(const char *str, struct rb_root *root) in comm_str__findnew()
50 struct comm_str *iter, *new; in comm_str__findnew()
55 iter = rb_entry(parent, struct comm_str, rb_node); in comm_str__findnew()
87 comm->comm_str = comm_str__findnew(str, &comm_str_root); in comm__new()
88 if (!comm->comm_str) { in comm__new()
93 comm_str__get(comm->comm_str); in comm__new()
100 struct comm_str *new, *old = comm->comm_str; in comm__override()
108 comm->comm_str = new; in comm__override()
118 comm_str__put(comm->comm_str); in comm__free()
124 return comm->comm_str->str; in comm__str()