Home
last modified time | relevance | path

Searched refs:htable (Results 1 – 6 of 6) sorted by relevance

/security/selinux/ss/
Dhashtab.c28 p->htable = kmalloc_array(size, sizeof(*p->htable), GFP_KERNEL); in hashtab_create()
29 if (!p->htable) { in hashtab_create()
35 p->htable[i] = NULL; in hashtab_create()
52 cur = h->htable[hvalue]; in hashtab_insert()
70 newnode->next = h->htable[hvalue]; in hashtab_insert()
71 h->htable[hvalue] = newnode; in hashtab_insert()
87 cur = h->htable[hvalue]; in hashtab_search()
106 cur = h->htable[i]; in hashtab_destroy()
112 h->htable[i] = NULL; in hashtab_destroy()
115 kfree(h->htable); in hashtab_destroy()
[all …]
Dsidtab.c22 s->htable = kmalloc_array(SIDTAB_SIZE, sizeof(*s->htable), GFP_ATOMIC); in sidtab_init()
23 if (!s->htable) in sidtab_init()
26 s->htable[i] = NULL; in sidtab_init()
44 cur = s->htable[hvalue]; in sidtab_insert()
68 newnode->next = s->htable[hvalue]; in sidtab_insert()
70 s->htable[hvalue] = newnode; in sidtab_insert()
88 cur = s->htable[hvalue]; in sidtab_search_core()
99 cur = s->htable[hvalue]; in sidtab_search_core()
132 cur = s->htable[i]; in sidtab_map()
162 cur = s->htable[i]; in sidtab_search_context()
[all …]
Davtab.c96 newnode->next = flex_array_get_ptr(h->htable, hvalue); in avtab_insert_node()
97 if (flex_array_put_ptr(h->htable, hvalue, newnode, in avtab_insert_node()
114 if (!h || !h->htable) in avtab_insert()
118 for (prev = NULL, cur = flex_array_get_ptr(h->htable, hvalue); in avtab_insert()
159 if (!h || !h->htable) in avtab_insert_nonunique()
162 for (prev = NULL, cur = flex_array_get_ptr(h->htable, hvalue); in avtab_insert_nonunique()
189 if (!h || !h->htable) in avtab_search()
193 for (cur = flex_array_get_ptr(h->htable, hvalue); cur; in avtab_search()
225 if (!h || !h->htable) in avtab_search_node()
229 for (cur = flex_array_get_ptr(h->htable, hvalue); cur; in avtab_search_node()
[all …]
Dhashtab.h23 struct hashtab_node **htable; /* hash table */ member
Dsidtab.h26 struct sidtab_node **htable; member
Davtab.h87 struct flex_array *htable; member