Home
last modified time | relevance | path

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

/linux/security/keys/
H A Dkeyring.c181 static void hash_key_type_and_desc(struct keyring_index_key *index_key) in hash_key_type_and_desc()
190 acc = siphash(index_key->description, index_key->desc_len, &hash_key); in hash_key_type_and_desc()
191 acc = siphash_3u64(index_key->type_id, index_key->domain_id, acc, 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 in key_set_index_key()
163 hash_key_type_and_desc(struct keyring_index_key * index_key) hash_key_type_and_desc() argument
270 const struct keyring_index_key *index_key = data; keyring_get_key_chunk() local
313 const struct keyring_index_key *index_key = data; keyring_compare_object() local
1104 find_key_to_update(key_ref_t keyring_ref,const struct keyring_index_key * index_key) find_key_to_update() argument
1243 __key_link_lock(struct key * keyring,const struct keyring_index_key * index_key) __key_link_lock() argument
1265 __key_move_lock(struct key * l_keyring,struct key * u_keyring,const struct keyring_index_key * index_key) __key_move_lock() argument
1299 __key_link_begin(struct key * keyring,const struct keyring_index_key * index_key,struct assoc_array_edit ** _edit) __key_link_begin() argument
1389 __key_link_end(struct key * keyring,const struct keyring_index_key * index_key,struct assoc_array_edit * edit) __key_link_end() argument
[all...]
H A Dpersistent.c45 struct keyring_index_key *index_key, in key_get_or_create_persistent() argument
58 *persistent_ref = find_key_to_update(reg_ref, index_key); in key_get_or_create_persistent()
63 persistent = keyring_alloc(index_key->description, in key_get_or_create_persistent()
83 struct keyring_index_key index_key; in key_get_persistent() local
91 memset(&index_key, 0, sizeof(index_key)); in key_get_persistent()
92 index_key.type = &key_type_keyring; in key_get_persistent()
93 index_key.description = buf; in key_get_persistent()
94 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); in key_get_persistent()
95 key_set_index_key(&index_key); in key_get_persistent()
100 persistent_ref = find_key_to_update(reg_ref, &index_key); in key_get_persistent()
[all …]
H A Dkey.c283 key->index_key.desc_len = desclen; in key_alloc()
284 key->index_key.description = kmemdup(desc, desclen + 1, GFP_KERNEL); in key_alloc()
285 if (!key->index_key.description) in key_alloc()
287 key->index_key.type = type; in key_alloc()
288 key_set_index_key(&key->index_key); in key_alloc()
547 ret = __key_link_lock(keyring, &key->index_key); in key_instantiate_and_link()
551 ret = __key_link_begin(keyring, &key->index_key, &edit);
569 __key_link_end(keyring, &key->index_key, edit);
636 link_ret = __key_link_lock(keyring, &key->index_key); in key_reject_and_link()
646 __key_link_end(keyring, &key->index_key,
815 struct keyring_index_key index_key = { __key_create_or_update() local
[all...]
H A 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, edi in construct_alloc_key()
[all...]
H A Dinternal.h93 extern void key_set_index_key(struct keyring_index_key *index_key);
98 const struct keyring_index_key *index_key);
100 const struct keyring_index_key *index_key);
102 const struct keyring_index_key *index_key,
108 const struct keyring_index_key *index_key,
112 const struct keyring_index_key *index_key);
115 struct keyring_index_key index_key;
113 struct keyring_index_key index_key; global() member
H A Drequest_key_auth.c285 .index_key.type = &key_type_request_key_auth, in key_get_instantiation_authkey()
286 .index_key.description = description, in key_get_instantiation_authkey()
297 ctx.index_key.desc_len = sprintf(description, "%x", target_id); in key_get_instantiation_authkey()
H A Dprocess_keys.c202 .index_key.type = &key_type_keyring, in get_user_session_keyring_rcu()
203 .index_key.description = buf, in get_user_session_keyring_rcu()
214 ctx.index_key.desc_len = snprintf(buf, sizeof(buf), "_uid_ses.%u",
540 ctx->index_key.type != &key_type_request_key_auth in search_process_keyrings_rcu()
820 ctx.index_key = key->index_key; in lookup_user_key()
H A Dproc.c166 .index_key = key->index_key, in proc_keys_show()
/linux/include/linux/
H A 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);
H A Dfscache.h265 const void *index_key, in fscache_acquire_cookie() argument
274 index_key, index_key_len, in fscache_acquire_cookie()
H A Dassoc_array_priv.h68 unsigned long index_key[]; member
H A Dkey.h253 struct keyring_index_key index_key;
247 struct keyring_index_key index_key; global() member
/linux/net/rxrpc/
H A 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()
H A Dar-internal.h445 u64 index_key; member
/linux/Documentation/translations/zh_CN/core-api/
H A 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/lib/
H A 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()
297 * @index_key: The key to the object.
307 const void *index_key) in assoc_array_find() argument
315 if (assoc_array_walk(array, ops, index_key, &result) != in assoc_array_find()
332 if (ops->compare_object(leaf, index_key)) in assoc_array_find()
493 const void *index_key, in assoc_array_insert_into_terminal_node()
512 index_key)) { in assoc_array_insert_into_terminal_node()
477 assoc_array_insert_into_terminal_node(struct assoc_array_edit * edit,const struct assoc_array_ops * ops,const void * index_key,struct assoc_array_walk_result * result) assoc_array_insert_into_terminal_node() argument
964 assoc_array_insert(struct assoc_array * array,const struct assoc_array_ops * ops,const void * index_key,void * object) assoc_array_insert() argument
1079 assoc_array_delete(struct assoc_array * array,const struct assoc_array_ops * ops,const void * index_key) assoc_array_delete() argument
[all...]
/linux/fs/netfs/
H A Dfscache_cookie.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/Documentation/core-api/
H A Dassoc_array.rst124 unsigned long (*get_key_chunk)(const void *index_key, int level);
144 bool (*compare_object)(const void *object, const void *index_key);
152 int (*diff_objects)(const void *object, const void *index_key);
184 const void *index_key,
194 The ``index_key`` argument should hold index key information and is
209 const void *index_key);
213 The ``index_key`` argument should hold index key information and is
313 const void *index_key);
/linux/Documentation/filesystems/caching/
H A Dnetfs-api.rst151 const void *index_key,