Home
last modified time | relevance | path

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

/openbmc/linux/security/keys/
H A Dkeyring.c217 size_t n = min_t(size_t, index_key->desc_len, sizeof(index_key->desc)); in key_set_index_key()
219 memcpy(index_key->desc, index_key->description, n); in key_set_index_key()
280 return index_key->x; in keyring_get_key_chunk()
290 d = index_key->description + sizeof(index_key->desc); in keyring_get_key_chunk()
314 return key->index_key.type == index_key->type && in keyring_compare_object()
315 key->index_key.domain_tag == index_key->domain_tag && in keyring_compare_object()
316 key->index_key.desc_len == index_key->desc_len && in keyring_compare_object()
317 memcmp(key->index_key.description, index_key->description, in keyring_compare_object()
1110 index_key); in find_key_to_update()
1216 .index_key = A->index_key, in keyring_detect_cycle()
[all …]
H A 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 …]
H A Dkey.c285 key->index_key.type = type; in key_alloc()
814 if (IS_ERR(index_key.type)) { in __key_create_or_update()
821 (!index_key.description && !index_key.type->preparse)) in __key_create_or_update()
847 if (!index_key.description) in __key_create_or_update()
850 if (!index_key.description) in __key_create_or_update()
853 index_key.desc_len = strlen(index_key.description); in __key_create_or_update()
909 if (index_key.type->read) in __key_create_or_update()
913 index_key.type->update) in __key_create_or_update()
918 key = key_alloc(index_key.type, index_key.description, in __key_create_or_update()
941 if (index_key.type->preparse) in __key_create_or_update()
[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()
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()
584 .index_key.type = type, in request_key_and_link()
585 .index_key.domain_tag = domain_tag, in request_key_and_link()
586 .index_key.description = description, in request_key_and_link()
601 ctx.index_key.type->name, ctx.index_key.description, in request_key_and_link()
787 .index_key.type = type, in request_key_rcu()
788 .index_key.domain_tag = domain_tag, in request_key_rcu()
[all …]
H A 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
H A 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()
H A 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()
H A Dproc.c166 .index_key = key->index_key, in proc_keys_show()
/openbmc/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 Dassoc_array_priv.h68 unsigned long index_key[]; member
H A Dfscache.h245 const void *index_key, in fscache_acquire_cookie() argument
254 index_key, index_key_len, in fscache_acquire_cookie()
H A Dkey.h246 struct keyring_index_key index_key; member
/openbmc/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.h369 u64 index_key; member
/openbmc/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);
/openbmc/linux/lib/
H A Dassoc_array.c172 const void *index_key, in assoc_array_walk() argument
306 const void *index_key) in assoc_array_find() argument
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()
763 new_s0->index_key[i] = in assoc_array_insert_into_terminal_node()
865 memcpy(new_s0->index_key, shortcut->index_key, in assoc_array_insert_mid_shortcut()
914 memcpy(new_s1->index_key, shortcut->index_key, in assoc_array_insert_mid_shortcut()
965 const void *index_key, in assoc_array_insert() argument
1080 const void *index_key) in assoc_array_delete() argument
[all …]
/openbmc/linux/fs/fscache/
H A 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()
/openbmc/linux/Documentation/core-api/
H A 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);
/openbmc/linux/Documentation/filesystems/caching/
H A Dnetfs-api.rst151 const void *index_key,