/linux-master/include/linux/ |
H A D | assoc_array.h | 32 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 D | assoc_array_priv.h | 68 unsigned long index_key[]; member in struct:assoc_array_shortcut
|
H A D | fscache.h | 231 * @index_key: The index key for this cookie 245 const void *index_key, 254 index_key, index_key_len, 243 fscache_acquire_cookie(struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) argument
|
H A D | key.h | 246 struct keyring_index_key index_key; member in union:key::__anon1704
|
/linux-master/security/keys/ |
H A D | persistent.c | 41 struct keyring_index_key *index_key) 52 persistent_ref = find_key_to_update(reg_ref, index_key); 57 persistent = keyring_alloc(index_key->description, 76 struct keyring_index_key index_key; local 83 memset(&index_key, 0, sizeof(index_key)); 84 index_key.type = &key_type_keyring; 85 index_key.description = buf; 86 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); 87 key_set_index_key(&index_key); 40 key_create_persistent(struct user_namespace *ns, kuid_t uid, struct keyring_index_key *index_key) argument [all...] |
H A D | keyring.c | 163 static void hash_key_type_and_desc(struct keyring_index_key *index_key) argument 167 const char *description = index_key->description; 171 int n, desc_len = index_key->desc_len; 173 type = (unsigned long)index_key->type; 176 piece = (unsigned long)index_key->domain_tag; 203 if (index_key->type != &key_type_keyring && (hash & fan_mask) == 0) 205 else if (index_key->type == &key_type_keyring && (hash & fan_mask) != 0) 207 index_key->hash = hash; 214 void key_set_index_key(struct keyring_index_key *index_key) argument 217 size_t n = min_t(size_t, index_key 270 const struct keyring_index_key *index_key = data; local 311 const struct keyring_index_key *index_key = data; local 1098 find_key_to_update(key_ref_t keyring_ref, const struct keyring_index_key *index_key) argument 1292 __key_link_begin(struct key *keyring, const struct keyring_index_key *index_key, struct assoc_array_edit **_edit) argument [all...] |
H A D | key.c | 280 key->index_key.desc_len = desclen; 281 key->index_key.description = kmemdup(desc, desclen + 1, GFP_KERNEL); 282 if (!key->index_key.description) 284 key->index_key.type = type; 285 key_set_index_key(&key->index_key); 518 ret = __key_link_lock(keyring, &key->index_key); 522 ret = __key_link_begin(keyring, &key->index_key, &edit); 540 __key_link_end(keyring, &key->index_key, edit); 590 link_ret = __key_link_lock(keyring, &key->index_key); 592 link_ret = __key_link_begin(keyring, &key->index_key, 799 struct keyring_index_key index_key = { local [all...] |
H A D | request_key.c | 382 ctx->index_key.type->name, ctx->index_key.description); 389 if (ctx->index_key.type->read) 391 if (ctx->index_key.type == &key_type_keyring || 392 ctx->index_key.type->update) 395 key = key_alloc(ctx->index_key.type, ctx->index_key.description, 404 ret = __key_link_lock(dest_keyring, &key->index_key); 428 ret = __key_link_begin(dest_keyring, &key->index_key, &edit); 436 __key_link_end(dest_keyring, &key->index_key, edi [all...] |
H A D | internal.h | 91 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); 113 struct keyring_index_key index_key; member in struct:keyring_search_context
|
H A D | request_key_auth.c | 250 .index_key.type = &key_type_request_key_auth, 251 .index_key.description = description, 262 ctx.index_key.desc_len = sprintf(description, "%x", target_id);
|
H A D | process_keys.c | 192 .index_key.type = &key_type_keyring, 193 .index_key.description = buf, 204 ctx.index_key.desc_len = snprintf(buf, sizeof(buf), "_uid_ses.%u", 555 ctx->index_key.type != &key_type_request_key_auth 758 ctx.index_key = key->index_key;
|
H A D | proc.c | 166 .index_key = key->index_key,
|
/linux-master/net/rxrpc/ |
H A D | conn_service.c | 45 if (conn->proto.index_key < k.index_key) 47 else if (conn->proto.index_key > k.index_key) 80 if (cursor->proto.index_key < k.index_key) 82 else if (cursor->proto.index_key > k.index_key)
|
H A D | ar-internal.h | 373 u64 index_key; member in union:rxrpc_conn_proto::__anon3020
|
/linux-master/lib/ |
H A D | assoc_array.c | 172 const void *index_key, 199 segments = ops->get_key_chunk(index_key, level); 253 segments = ops->get_key_chunk(index_key, sc_level); 255 sc_segments = shortcut->index_key[sc_level >> ASSOC_ARRAY_KEY_CHUNK_SHIFT]; 296 * @index_key: The key to the object. 306 const void *index_key) 314 if (assoc_array_walk(array, ops, index_key, &result) != 331 if (ops->compare_object(leaf, index_key)) 476 const void *index_key, 512 index_key)) { 170 assoc_array_walk(const struct assoc_array *array, const struct assoc_array_ops *ops, const void *index_key, struct assoc_array_walk_result *result) argument 304 assoc_array_find(const struct assoc_array *array, const struct assoc_array_ops *ops, const void *index_key) argument 474 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) argument 963 assoc_array_insert(struct assoc_array *array, const struct assoc_array_ops *ops, const void *index_key, void *object) argument 1078 assoc_array_delete(struct assoc_array *array, const struct assoc_array_ops *ops, const void *index_key) argument [all...] |
/linux-master/fs/netfs/ |
H A D | fscache_cookie.c | 278 const void *index_key, size_t index_key_len) 294 memcpy(buf, index_key, index_key_len); 328 const void *index_key, size_t index_key_len, 348 if (fscache_set_key(cookie, index_key, index_key_len) < 0) 453 const void *index_key, size_t index_key_len, 461 if (!index_key || !index_key_len || index_key_len > 255 || aux_data_len > 255) 471 index_key, index_key_len, 277 fscache_set_key(struct fscache_cookie *cookie, const void *index_key, size_t index_key_len) argument 325 fscache_alloc_cookie( struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) argument 450 __fscache_acquire_cookie( struct fscache_volume *volume, u8 advice, const void *index_key, size_t index_key_len, const void *aux_data, size_t aux_data_len, loff_t object_size) argument
|