Lines Matching refs:snode
20 struct str_node *snode = malloc(sizeof(*snode)); in strlist__node_new() local
22 if (snode != NULL) { in strlist__node_new()
28 snode->s = s; in strlist__node_new()
29 rc = &snode->rb_node; in strlist__node_new()
35 free(snode); in strlist__node_new()
39 static void str_node__delete(struct str_node *snode, bool dupstr) in str_node__delete() argument
42 zfree((char **)&snode->s); in str_node__delete()
43 free(snode); in str_node__delete()
50 struct str_node *snode = container_of(rb_node, struct str_node, rb_node); in strlist__node_delete() local
52 str_node__delete(snode, slist->dupstr); in strlist__node_delete()
58 struct str_node *snode = container_of(rb_node, struct str_node, rb_node); in strlist__node_cmp() local
60 return strcmp(snode->s, str); in strlist__node_cmp()
95 void strlist__remove(struct strlist *slist, struct str_node *snode) in strlist__remove() argument
97 rblist__remove_node(&slist->rblist, &snode->rb_node); in strlist__remove()
102 struct str_node *snode = NULL; in strlist__find() local
106 snode = container_of(rb_node, struct str_node, rb_node); in strlist__find()
108 return snode; in strlist__find()
200 struct str_node *snode = NULL; in strlist__entry() local
205 snode = container_of(rb_node, struct str_node, rb_node); in strlist__entry()
207 return snode; in strlist__entry()