H A D | nsssrv_mmap_cache.c | 197 static uint32_t sss_mc_hash(struct sss_mc_ctx *mcc, argument 200 return murmurhash3(key, len, mcc->seed) % MC_HT_ELEMS(mcc->ht_size); 203 static void sss_mc_add_rec_to_chain(struct sss_mc_ctx *mcc, argument 210 if (hash > MC_HT_ELEMS(mcc->ht_size)) { 216 slot = mcc->hash_table[hash]; 219 mcc->hash_table[hash] = MC_PTR_TO_SLOT(mcc->data_table, rec); 224 cur = MC_SLOT_TO_PTR(mcc->data_table, slot, struct sss_mc_rec); 233 slot = MC_PTR_TO_SLOT(mcc 237 sss_mc_rm_rec_from_chain(struct sss_mc_ctx *mcc, struct sss_mc_rec *rec, uint32_t hash) argument 280 sss_mc_free_slots(struct sss_mc_ctx *mcc, struct sss_mc_rec *rec) argument 293 sss_mc_invalidate_rec(struct sss_mc_ctx *mcc, struct sss_mc_rec *rec) argument 323 sss_mc_is_valid_rec(struct sss_mc_ctx *mcc, struct sss_mc_rec *rec) argument 380 sss_mc_find_free_slots(struct sss_mc_ctx *mcc, int num_slots, uint32_t *free_slot) argument 468 sss_mc_get_strs_offset(struct sss_mc_ctx *mcc, size_t *_offset) argument 487 sss_mc_get_strs_len(struct sss_mc_ctx *mcc, struct sss_mc_rec *rec, size_t *_len) argument 507 sss_mc_find_record(struct sss_mc_ctx *mcc, struct sized_string *key) argument 581 struct sss_mc_ctx *mcc = *_mcc; local 636 sss_mmap_set_rec_header(struct sss_mc_ctx *mcc, struct sss_mc_rec *rec, size_t len, int ttl, const char *key1, size_t key1_len, const char *key2, size_t key2_len) argument 648 sss_mmap_chain_in_rec(struct sss_mc_ctx *mcc, struct sss_mc_rec *rec) argument 661 sss_mmap_cache_invalidate(struct sss_mc_ctx *mcc, struct sized_string *key) argument 694 struct sss_mc_ctx *mcc = *_mcc; local 761 sss_mmap_cache_pw_invalidate(struct sss_mc_ctx *mcc, struct sized_string *name) argument 767 sss_mmap_cache_pw_invalidate_uid(struct sss_mc_ctx *mcc, uid_t uid) argument 837 struct sss_mc_ctx *mcc = *_mcc; local 900 sss_mmap_cache_gr_invalidate(struct sss_mc_ctx *mcc, struct sized_string *name) argument 906 sss_mmap_cache_gr_invalidate_gid(struct sss_mc_ctx *mcc, gid_t gid) argument 972 struct sss_mc_ctx *mcc = *_mcc; local 1033 sss_mmap_cache_initgr_invalidate(struct sss_mc_ctx *mcc, struct sized_string *name) argument 1212 sss_mmap_cache_init(TALLOC_CTX *mem_ctx, const char *name, enum sss_mc_type type, size_t n_elem, time_t timeout, struct sss_mc_ctx **mcc) argument [all...] |