Lines Matching defs:sidtab

20 #include "sidtab.h"
34 int sidtab_init(struct sidtab *s)
59 static u32 context_to_sid(struct sidtab *s, struct context *context, u32 hash)
77 int sidtab_set_initial(struct sidtab *s, u32 sid, struct context *context)
114 int sidtab_hash_stats(struct sidtab *sidtab, char *page)
125 hash_for_each_rcu(sidtab->context_to_sid, i, entry, list) {
160 static int sidtab_alloc_roots(struct sidtab *s, u32 level)
181 static struct sidtab_entry *sidtab_do_lookup(struct sidtab *s, u32 index,
222 static struct sidtab_entry *sidtab_lookup(struct sidtab *s, u32 index)
233 static struct sidtab_entry *sidtab_lookup_initial(struct sidtab *s, u32 sid)
238 static struct sidtab_entry *sidtab_search_core(struct sidtab *s, u32 sid,
255 struct sidtab_entry *sidtab_search_entry(struct sidtab *s, u32 sid)
260 struct sidtab_entry *sidtab_search_entry_force(struct sidtab *s, u32 sid)
265 int sidtab_context_to_sid(struct sidtab *s, struct context *context,
288 * 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
321 struct sidtab *target = convert->target;
361 static void sidtab_convert_hashtable(struct sidtab *s, u32 count)
423 int sidtab_convert(struct sidtab *s, struct sidtab_convert_params *params)
440 /* allocate last leaf in the new sidtab (to avoid race with
482 void sidtab_cancel_convert(struct sidtab *s)
486 /* cancelling policy load - disable live convert of sidtab */
492 void sidtab_freeze_begin(struct sidtab *s, unsigned long *flags) __acquires(&s->lock)
498 void sidtab_freeze_end(struct sidtab *s, unsigned long *flags) __releases(&s->lock)
536 void sidtab_destroy(struct sidtab *s)
558 void sidtab_sid2str_put(struct sidtab *s, struct sidtab_entry *entry,
603 int sidtab_sid2str_get(struct sidtab *s, struct sidtab_entry *entry,