Lines Matching defs:node
18 struct node {
23 struct node *prev;
24 struct node *next;
29 static struct node builtin[COUNT]; // 32 builtin nodes without malloc
30 static struct node *tail; // point to the last node, or NULL
31 static struct node *head; // point to the first node
38 struct node *nodes;
44 nodes = malloc(sizeof(struct node) * COUNT);
65 struct node *new_tail;
83 static struct node* remove_node(struct node *node) {
84 struct node *prev = node->prev;
85 if (tail == node) {
89 head = node;
92 // remove node
93 struct node *next = node->next;
101 // insert node after tail
102 struct node *tail_next = tail->next;
103 node->prev = tail;
104 node->next = tail_next;
105 tail->next = node;
107 tail_next->prev = node;
136 struct node *node;
139 for (node = tail; node;) {
140 if (dso == node->dso) {
141 func = node->func;
143 arg = node->arg;
149 node = remove_node(node);
153 node = node->prev;
206 struct node *node;
209 for (node = tail; node; node = node->prev) {
211 if (p == node->internal_dso) {
212 if ((node->dso == NULL) && node->func == (void *)call) {
213 MUSL_LOGD("invalidate callback ptr=%{public}p when uninstall %{public}s", node->arg, p->name);
214 node->arg = NULL;