/Linux-v4.19/security/keys/ |
D | keyring.c | 171 static unsigned long hash_key_type_and_desc(const struct keyring_index_key *index_key) in hash_key_type_and_desc() argument 175 const char *description = index_key->description; in hash_key_type_and_desc() 179 int n, desc_len = index_key->desc_len; in hash_key_type_and_desc() 181 type = (unsigned long)index_key->type; in hash_key_type_and_desc() 208 if (index_key->type != &key_type_keyring && (hash & fan_mask) == 0) in hash_key_type_and_desc() 210 if (index_key->type == &key_type_keyring && (hash & fan_mask) != 0) in hash_key_type_and_desc() 232 const struct keyring_index_key *index_key = data; in keyring_get_key_chunk() local 235 int desc_len = index_key->desc_len, n = sizeof(chunk); in keyring_get_key_chunk() 240 return hash_key_type_and_desc(index_key); in keyring_get_key_chunk() 242 return ((unsigned long)index_key->type << 8) | desc_len; in keyring_get_key_chunk() [all …]
|
D | key.c | 284 key->index_key.desc_len = desclen; in key_alloc() 285 key->index_key.description = kmemdup(desc, desclen + 1, GFP_KERNEL); in key_alloc() 286 if (!key->index_key.description) in key_alloc() 292 key->index_key.type = type; in key_alloc() 517 ret = __key_link_begin(keyring, &key->index_key, &edit); in key_instantiate_and_link() 535 __key_link_end(keyring, &key->index_key, edit); in key_instantiate_and_link() 585 link_ret = __key_link_begin(keyring, &key->index_key, &edit); in key_reject_and_link() 615 __key_link_end(keyring, &key->index_key, edit); in key_reject_and_link() 808 struct keyring_index_key index_key = { in key_create_or_update() local 821 index_key.type = key_type_lookup(type); in key_create_or_update() [all …]
|
D | persistent.c | 45 struct keyring_index_key *index_key) in key_create_persistent() argument 56 persistent_ref = find_key_to_update(reg_ref, index_key); in key_create_persistent() 61 persistent = keyring_alloc(index_key->description, in key_create_persistent() 80 struct keyring_index_key index_key; in key_get_persistent() local 87 index_key.type = &key_type_keyring; in key_get_persistent() 88 index_key.description = buf; in key_get_persistent() 89 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); in key_get_persistent() 94 persistent_ref = find_key_to_update(reg_ref, &index_key); in key_get_persistent() 105 persistent_ref = key_create_persistent(ns, uid, &index_key); in key_get_persistent()
|
D | request_key.c | 367 ctx->index_key.type->name, ctx->index_key.description); in construct_alloc_key() 374 if (ctx->index_key.type->read) in construct_alloc_key() 376 if (ctx->index_key.type == &key_type_keyring || in construct_alloc_key() 377 ctx->index_key.type->update) in construct_alloc_key() 380 key = key_alloc(ctx->index_key.type, ctx->index_key.description, in construct_alloc_key() 389 ret = __key_link_begin(dest_keyring, &ctx->index_key, &edit); in construct_alloc_key() 408 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key() 424 __key_link_end(dest_keyring, &ctx->index_key, edit); in construct_alloc_key() 467 if (ctx->index_key.type == &key_type_keyring) in construct_key_and_link() 546 .index_key.type = type, in request_key_and_link() [all …]
|
D | internal.h | 97 const struct keyring_index_key *index_key, 102 const struct keyring_index_key *index_key, 106 const struct keyring_index_key *index_key); 116 struct keyring_index_key index_key; member
|
D | request_key_auth.c | 238 .index_key.type = &key_type_request_key_auth, in key_get_instantiation_authkey() 239 .index_key.description = description, in key_get_instantiation_authkey()
|
D | process_keys.c | 469 ctx->index_key.type != &key_type_request_key_auth in search_process_keyrings() 691 ctx.index_key.type = key->type; in lookup_user_key() 692 ctx.index_key.description = key->description; in lookup_user_key() 693 ctx.index_key.desc_len = strlen(key->description); in lookup_user_key()
|
D | proc.c | 169 .index_key.type = key->type, in proc_keys_show() 170 .index_key.description = key->description, in proc_keys_show()
|
/Linux-v4.19/include/linux/ |
D | assoc_array.h | 36 unsigned long (*get_key_chunk)(const void *index_key, int level); 42 bool (*compare_object)(const void *object, const void *index_key); 47 int (*diff_objects)(const void *object, const void *index_key); 70 const void *index_key); 75 const void *index_key, 81 const void *index_key);
|
D | fscache.h | 329 const void *index_key, in fscache_acquire_cookie() argument 339 index_key, index_key_len, in fscache_acquire_cookie()
|
D | assoc_array_priv.h | 72 unsigned long index_key[]; member
|
D | key.h | 203 struct keyring_index_key index_key; member
|
/Linux-v4.19/net/rxrpc/ |
D | conn_service.c | 48 if (conn->proto.index_key < k.index_key) in rxrpc_find_service_conn_rcu() 50 else if (conn->proto.index_key > k.index_key) in rxrpc_find_service_conn_rcu() 83 if (cursor->proto.index_key < k.index_key) in rxrpc_publish_service_conn() 85 else if (cursor->proto.index_key > k.index_key) in rxrpc_publish_service_conn()
|
D | ar-internal.h | 325 u64 index_key; member
|
/Linux-v4.19/lib/ |
D | assoc_array.c | 176 const void *index_key, in assoc_array_walk() argument 203 segments = ops->get_key_chunk(index_key, level); in assoc_array_walk() 257 segments = ops->get_key_chunk(index_key, sc_level); in assoc_array_walk() 259 sc_segments = shortcut->index_key[sc_level >> ASSOC_ARRAY_KEY_CHUNK_SHIFT]; in assoc_array_walk() 310 const void *index_key) in assoc_array_find() argument 318 if (assoc_array_walk(array, ops, index_key, &result) != in assoc_array_find() 335 if (ops->compare_object(leaf, index_key)) in assoc_array_find() 480 const void *index_key, in assoc_array_insert_into_terminal_node() argument 516 index_key)) { in assoc_array_insert_into_terminal_node() 736 index_key); in assoc_array_insert_into_terminal_node() [all …]
|
/Linux-v4.19/fs/fscache/ |
D | cookie.c | 79 const void *index_key, size_t index_key_len) in fscache_set_key() argument 97 memcpy(buf, index_key, index_key_len); in fscache_set_key() 142 const void *index_key, size_t index_key_len, in fscache_alloc_cookie() argument 157 if (fscache_set_key(cookie, index_key, index_key_len) < 0) in fscache_alloc_cookie() 256 const void *index_key, size_t index_key_len, in __fscache_acquire_cookie() argument 270 if (!index_key || !index_key_len || index_key_len > 255 || aux_data_len > 255) in __fscache_acquire_cookie() 293 index_key, index_key_len, in __fscache_acquire_cookie()
|
/Linux-v4.19/Documentation/core-api/ |
D | assoc_array.rst | 124 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-v4.19/Documentation/filesystems/caching/ |
D | netfs-api.txt | 300 const void *index_key, 312 index_key and is of length index_key_len.
|