• Home
  • Raw
  • Download

Lines Matching refs:key

37 	struct qstr key;  member
72 static appid_t __get_appid(const struct qstr *key) in __get_appid() argument
75 unsigned int hash = key->hash; in __get_appid()
80 if (qstr_case_eq(key, &hash_cur->key)) { in __get_appid()
90 appid_t get_appid(const char *key) in get_appid() argument
94 qstr_init(&q, key); in get_appid()
98 static appid_t __get_ext_gid(const struct qstr *key) in __get_ext_gid() argument
101 unsigned int hash = key->hash; in __get_ext_gid()
106 if (qstr_case_eq(key, &hash_cur->key)) { in __get_ext_gid()
116 appid_t get_ext_gid(const char *key) in get_ext_gid() argument
120 qstr_init(&q, key); in get_ext_gid()
132 qstr_case_eq(app_name, &hash_cur->key)) { in __is_excluded()
141 appid_t is_excluded(const char *key, userid_t user) in is_excluded() argument
145 qstr_init(&q, key); in is_excluded()
178 static struct hashtable_entry *alloc_hashtable_entry(const struct qstr *key, in alloc_hashtable_entry() argument
188 if (!qstr_copy(key, &ret->key)) { in alloc_hashtable_entry()
197 static int insert_packagelist_appid_entry_locked(const struct qstr *key, appid_t value) in insert_packagelist_appid_entry_locked() argument
201 unsigned int hash = key->hash; in insert_packagelist_appid_entry_locked()
204 if (qstr_case_eq(key, &hash_cur->key)) { in insert_packagelist_appid_entry_locked()
209 new_entry = alloc_hashtable_entry(key, value); in insert_packagelist_appid_entry_locked()
216 static int insert_ext_gid_entry_locked(const struct qstr *key, appid_t value) in insert_ext_gid_entry_locked() argument
220 unsigned int hash = key->hash; in insert_ext_gid_entry_locked()
224 if (qstr_case_eq(key, &hash_cur->key)) in insert_ext_gid_entry_locked()
227 new_entry = alloc_hashtable_entry(key, value); in insert_ext_gid_entry_locked()
234 static int insert_userid_exclude_entry_locked(const struct qstr *key, userid_t value) in insert_userid_exclude_entry_locked() argument
238 unsigned int hash = key->hash; in insert_userid_exclude_entry_locked()
243 qstr_case_eq(key, &hash_cur->key)) in insert_userid_exclude_entry_locked()
246 new_entry = alloc_hashtable_entry(key, value); in insert_userid_exclude_entry_locked()
253 static void fixup_all_perms_name(const struct qstr *key) in fixup_all_perms_name() argument
258 .name = QSTR_INIT(key->name, key->len), in fixup_all_perms_name()
266 static void fixup_all_perms_name_userid(const struct qstr *key, userid_t userid) in fixup_all_perms_name_userid() argument
271 .name = QSTR_INIT(key->name, key->len), in fixup_all_perms_name_userid()
293 static int insert_packagelist_entry(const struct qstr *key, appid_t value) in insert_packagelist_entry() argument
298 err = insert_packagelist_appid_entry_locked(key, value); in insert_packagelist_entry()
300 fixup_all_perms_name(key); in insert_packagelist_entry()
306 static int insert_ext_gid_entry(const struct qstr *key, appid_t value) in insert_ext_gid_entry() argument
311 err = insert_ext_gid_entry_locked(key, value); in insert_ext_gid_entry()
317 static int insert_userid_exclude_entry(const struct qstr *key, userid_t value) in insert_userid_exclude_entry() argument
322 err = insert_userid_exclude_entry_locked(key, value); in insert_userid_exclude_entry()
324 fixup_all_perms_name_userid(key, value); in insert_userid_exclude_entry()
332 kfree(entry->key.name); in free_hashtable_entry()
336 static void remove_packagelist_entry_locked(const struct qstr *key) in remove_packagelist_entry_locked() argument
339 unsigned int hash = key->hash; in remove_packagelist_entry_locked()
344 if (qstr_case_eq(key, &hash_cur->key)) { in remove_packagelist_entry_locked()
350 if (qstr_case_eq(key, &hash_cur->key)) { in remove_packagelist_entry_locked()
361 static void remove_packagelist_entry(const struct qstr *key) in remove_packagelist_entry() argument
364 remove_packagelist_entry_locked(key); in remove_packagelist_entry()
365 fixup_all_perms_name(key); in remove_packagelist_entry()
369 static void remove_ext_gid_entry_locked(const struct qstr *key, gid_t group) in remove_ext_gid_entry_locked() argument
372 unsigned int hash = key->hash; in remove_ext_gid_entry_locked()
375 if (qstr_case_eq(key, &hash_cur->key) && atomic_read(&hash_cur->value) == group) { in remove_ext_gid_entry_locked()
384 static void remove_ext_gid_entry(const struct qstr *key, gid_t group) in remove_ext_gid_entry() argument
387 remove_ext_gid_entry_locked(key, group); in remove_ext_gid_entry()
418 static void remove_userid_exclude_entry_locked(const struct qstr *key, userid_t userid) in remove_userid_exclude_entry_locked() argument
421 unsigned int hash = key->hash; in remove_userid_exclude_entry_locked()
424 if (qstr_case_eq(key, &hash_cur->key) && in remove_userid_exclude_entry_locked()
434 static void remove_userid_exclude_entry(const struct qstr *key, userid_t userid) in remove_userid_exclude_entry() argument
437 remove_userid_exclude_entry_locked(key, userid); in remove_userid_exclude_entry()
438 fixup_all_perms_name_userid(key, userid); in remove_userid_exclude_entry()
513 if (qstr_case_eq(&package_details->name, &hash_cur->key)) in package_details_excluded_userids_show()
763 hash_cur_app->key.name, atomic_read(&hash_cur_app->value)); in packages_list_show()
764 hash = hash_cur_app->key.hash; in packages_list_show()
766 if (qstr_case_eq(&hash_cur_app->key, &hash_cur_user->key)) { in packages_list_show()