Home
last modified time | relevance | path

Searched refs:index_key (Results 1 – 19 of 19) sorted by relevance

/linux-6.6.21/security/keys/ !
Dkeyring.c163 static void hash_key_type_and_desc(struct keyring_index_key *index_key) in hash_key_type_and_desc() argument
167 const char *description = index_key->description; in hash_key_type_and_desc()
171 int n, desc_len = index_key->desc_len; in hash_key_type_and_desc()
173 type = (unsigned long)index_key->type; in hash_key_type_and_desc()
176 piece = (unsigned long)index_key->domain_tag; in hash_key_type_and_desc()
203 if (index_key->type != &key_type_keyring && (hash & fan_mask) == 0) in hash_key_type_and_desc()
205 else if (index_key->type == &key_type_keyring && (hash & fan_mask) != 0) in hash_key_type_and_desc()
207 index_key->hash = hash; in hash_key_type_and_desc()
214 void key_set_index_key(struct keyring_index_key *index_key) in key_set_index_key() argument
217 size_t n = min_t(size_t, index_key->desc_len, sizeof(index_key->desc)); in key_set_index_key()
[all …]
Dpersistent.c41 struct keyring_index_key *index_key) in key_create_persistent() argument
52 persistent_ref = find_key_to_update(reg_ref, index_key); in key_create_persistent()
57 persistent = keyring_alloc(index_key->description, in key_create_persistent()
76 struct keyring_index_key index_key; in key_get_persistent() local
83 memset(&index_key, 0, sizeof(index_key)); in key_get_persistent()
84 index_key.type = &key_type_keyring; in key_get_persistent()
85 index_key.description = buf; in key_get_persistent()
86 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); in key_get_persistent()
87 key_set_index_key(&index_key); in key_get_persistent()
92 persistent_ref = find_key_to_update(reg_ref, &index_key); in key_get_persistent()
[all …]
Dkey.c281 key->index_key.desc_len = desclen; in key_alloc()
282 key->index_key.description = kmemdup(desc, desclen + 1, GFP_KERNEL); in key_alloc()
283 if (!key->index_key.description) in key_alloc()
285 key->index_key.type = type; in key_alloc()
286 key_set_index_key(&key->index_key); in key_alloc()
519 ret = __key_link_lock(keyring, &key->index_key); in key_instantiate_and_link()
523 ret = __key_link_begin(keyring, &key->index_key, &edit); in key_instantiate_and_link()
541 __key_link_end(keyring, &key->index_key, edit); in key_instantiate_and_link()
591 link_ret = __key_link_lock(keyring, &key->index_key); in key_reject_and_link()
593 link_ret = __key_link_begin(keyring, &key->index_key, &edit); in key_reject_and_link()
[all …]
Drequest_key.c382 ctx->index_key.type->name, ctx->index_key.description); in construct_alloc_key()
389 if (ctx->index_key.type->read) in construct_alloc_key()
391 if (ctx->index_key.type == &key_type_keyring || in construct_alloc_key()
392 ctx->index_key.type->update) in construct_alloc_key()
395 key = key_alloc(ctx->index_key.type, ctx->index_key.description, in construct_alloc_key()
404 ret = __key_link_lock(dest_keyring, &key->index_key); in construct_alloc_key()
428 ret = __key_link_begin(dest_keyring, &key->index_key, &edit); in construct_alloc_key()
436 __key_link_end(dest_keyring, &key->index_key, edit); in construct_alloc_key()
449 ret = __key_link_begin(dest_keyring, &key->index_key, &edit); in construct_alloc_key()
455 __key_link_end(dest_keyring, &key->index_key, edit); in construct_alloc_key()
[all …]
Dinternal.h91 extern void key_set_index_key(struct keyring_index_key *index_key);
96 const struct keyring_index_key *index_key);
98 const struct keyring_index_key *index_key);
100 const struct keyring_index_key *index_key,
106 const struct keyring_index_key *index_key,
110 const struct keyring_index_key *index_key);
120 struct keyring_index_key index_key; member
Drequest_key_auth.c250 .index_key.type = &key_type_request_key_auth, in key_get_instantiation_authkey()
251 .index_key.description = description, in key_get_instantiation_authkey()
262 ctx.index_key.desc_len = sprintf(description, "%x", target_id); in key_get_instantiation_authkey()
Dprocess_keys.c192 .index_key.type = &key_type_keyring, in get_user_session_keyring_rcu()
193 .index_key.description = buf, in get_user_session_keyring_rcu()
204 ctx.index_key.desc_len = snprintf(buf, sizeof(buf), "_uid_ses.%u", in get_user_session_keyring_rcu()
555 ctx->index_key.type != &key_type_request_key_auth in search_process_keyrings_rcu()
758 ctx.index_key = key->index_key; in lookup_user_key()
Dproc.c166 .index_key = key->index_key, in proc_keys_show()
/linux-6.6.21/include/linux/ !
Dassoc_array.h32 unsigned long (*get_key_chunk)(const void *index_key, int level);
38 bool (*compare_object)(const void *object, const void *index_key);
43 int (*diff_objects)(const void *object, const void *index_key);
66 const void *index_key);
71 const void *index_key,
77 const void *index_key);
Dassoc_array_priv.h68 unsigned long index_key[]; member
Dfscache.h245 const void *index_key, in fscache_acquire_cookie() argument
254 index_key, index_key_len, in fscache_acquire_cookie()
Dkey.h246 struct keyring_index_key index_key; member
/linux-6.6.21/net/rxrpc/ !
Dconn_service.c45 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu()
47 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu()
80 if (cursor->proto.index_key < k.index_key) in rxrpc_publish_service_conn()
82 else if (cursor->proto.index_key > k.index_key) in rxrpc_publish_service_conn()
Dar-internal.h369 u64 index_key; member
/linux-6.6.21/Documentation/translations/zh_CN/core-api/ !
Dassoc_array.rst119 unsigned long (*get_key_chunk)(const void *index_key, int level);
135 bool (*compare_object)(const void *object, const void *index_key);
142 int (*diff_objects)(const void *object, const void *index_key);
172 const void *index_key,
180 ``index_key`` 参数应持有索引键信息,并在调用OPP表中的方法时传递给它们。
193 const void *index_key);
197 ``index_key`` 参数应持有索引键信息,并在调用OPP表中的方法时传递给它们。
276 const void *index_key);
/linux-6.6.21/lib/ !
Dassoc_array.c172 const void *index_key, in assoc_array_walk() argument
199 segments = ops->get_key_chunk(index_key, level); in assoc_array_walk()
253 segments = ops->get_key_chunk(index_key, sc_level); in assoc_array_walk()
255 sc_segments = shortcut->index_key[sc_level >> ASSOC_ARRAY_KEY_CHUNK_SHIFT]; in assoc_array_walk()
306 const void *index_key) in assoc_array_find() argument
314 if (assoc_array_walk(array, ops, index_key, &result) != in assoc_array_find()
331 if (ops->compare_object(leaf, index_key)) in assoc_array_find()
476 const void *index_key, in assoc_array_insert_into_terminal_node() argument
512 index_key)) { in assoc_array_insert_into_terminal_node()
732 index_key); in assoc_array_insert_into_terminal_node()
[all …]
/linux-6.6.21/fs/fscache/ !
Dcookie.c278 const void *index_key, size_t index_key_len) in fscache_set_key() argument
294 memcpy(buf, index_key, index_key_len); in fscache_set_key()
328 const void *index_key, size_t index_key_len, in fscache_alloc_cookie() argument
348 if (fscache_set_key(cookie, index_key, index_key_len) < 0) in fscache_alloc_cookie()
453 const void *index_key, size_t index_key_len, in __fscache_acquire_cookie() argument
461 if (!index_key || !index_key_len || index_key_len > 255 || aux_data_len > 255) in __fscache_acquire_cookie()
471 index_key, index_key_len, in __fscache_acquire_cookie()
/linux-6.6.21/Documentation/core-api/ !
Dassoc_array.rst124 unsigned long (*get_key_chunk)(const void *index_key, int level);
142 bool (*compare_object)(const void *object, const void *index_key);
150 int (*diff_objects)(const void *object, const void *index_key);
182 const void *index_key,
192 The ``index_key`` argument should hold index key information and is
207 const void *index_key);
211 The ``index_key`` argument should hold index key information and is
311 const void *index_key);
/linux-6.6.21/Documentation/filesystems/caching/ !
Dnetfs-api.rst151 const void *index_key,