Lines Matching defs:sidtab
20 #include "sidtab.h"
33 int sidtab_init(struct sidtab *s)
58 static u32 context_to_sid(struct sidtab *s, struct context *context, u32 hash)
76 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context)
113 int sidtab_hash_stats(struct sidtab *sidtab, char *page)
124 hash_for_each_rcu(sidtab->context_to_sid, i, entry, list) {
159 static int sidtab_alloc_roots(struct sidtab *s, u32 level)
180 static struct sidtab_entry *sidtab_do_lookup(struct sidtab *s, u32 index,
221 static struct sidtab_entry *sidtab_lookup(struct sidtab *s, u32 index)
232 static struct sidtab_entry *sidtab_lookup_initial(struct sidtab *s, u32 sid)
237 static struct sidtab_entry *sidtab_search_core(struct sidtab *s, u32 sid,
254 struct sidtab_entry *sidtab_search_entry(struct sidtab *s, u32 sid)
259 struct sidtab_entry *sidtab_search_entry_force(struct sidtab *s, u32 sid)
264 int sidtab_context_to_sid(struct sidtab *s, struct context *context,
287 * This sidtab is now frozen - tell the caller to abort and
316 * if we are building a new sidtab, we need to convert the context
357 static void sidtab_convert_hashtable(struct sidtab *s, u32 count)
418 int sidtab_convert(struct sidtab *s, struct sidtab_convert_params *params)
435 /* allocate last leaf in the new sidtab (to avoid race with
477 void sidtab_cancel_convert(struct sidtab *s)
481 /* cancelling policy load - disable live convert of sidtab */
487 void sidtab_freeze_begin(struct sidtab *s, unsigned long *flags) __acquires(&s->lock)
493 void sidtab_freeze_end(struct sidtab *s, unsigned long *flags) __releases(&s->lock)
531 void sidtab_destroy(struct sidtab *s)
553 void sidtab_sid2str_put(struct sidtab *s, struct sidtab_entry *entry,
598 int sidtab_sid2str_get(struct sidtab *s, struct sidtab_entry *entry,