Home
last modified time | relevance | path

Searched refs:newnode (Results 1 – 3 of 3) sorted by relevance

/security/selinux/ss/
Dhashtab.c42 struct hashtab_node *prev, *cur, *newnode; in hashtab_insert() local
60 newnode = kzalloc(sizeof(*newnode), GFP_KERNEL); in hashtab_insert()
61 if (newnode == NULL) in hashtab_insert()
63 newnode->key = key; in hashtab_insert()
64 newnode->datum = datum; in hashtab_insert()
66 newnode->next = prev->next; in hashtab_insert()
67 prev->next = newnode; in hashtab_insert()
69 newnode->next = h->htable[hvalue]; in hashtab_insert()
70 h->htable[hvalue] = newnode; in hashtab_insert()
Dsidtab.c36 struct sidtab_node *prev, *cur, *newnode; in sidtab_insert() local
56 newnode = kmalloc(sizeof(*newnode), GFP_ATOMIC); in sidtab_insert()
57 if (newnode == NULL) { in sidtab_insert()
61 newnode->sid = sid; in sidtab_insert()
62 if (context_cpy(&newnode->context, context)) { in sidtab_insert()
63 kfree(newnode); in sidtab_insert()
69 newnode->next = prev->next; in sidtab_insert()
71 prev->next = newnode; in sidtab_insert()
73 newnode->next = s->htable[hvalue]; in sidtab_insert()
75 s->htable[hvalue] = newnode; in sidtab_insert()
Davtab.c73 struct avtab_node *newnode; in avtab_insert_node() local
75 newnode = kmem_cache_zalloc(avtab_node_cachep, GFP_KERNEL); in avtab_insert_node()
76 if (newnode == NULL) in avtab_insert_node()
78 newnode->key = *key; in avtab_insert_node()
83 kmem_cache_free(avtab_node_cachep, newnode); in avtab_insert_node()
87 newnode->datum.u.xperms = xperms; in avtab_insert_node()
89 newnode->datum.u.data = datum->u.data; in avtab_insert_node()
93 newnode->next = prev->next; in avtab_insert_node()
94 prev->next = newnode; in avtab_insert_node()
96 newnode->next = flex_array_get_ptr(h->htable, hvalue); in avtab_insert_node()
[all …]