函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyring.c Create Date:2022-07-27 19:51:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Finalise an index key to include a part of the description actually in the* index key, to set the domain tag and to calculate the hash.

函数原型:void key_set_index_key(struct keyring_index_key *index_key)

返回类型:void

参数:

类型参数名称
struct keyring_index_key *index_key
216  static struct key_tag default_domain_tag = {usage = REFCOUNT_INIT(1), }
217  n等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, desc_len, First few chars of description 的长度)
219  memcpy( First few chars of description , description, n)
221  如果非 Domain of operation
222  如果flags按位与Keys of this type have a net namespace domain Domain of operation 等于key_domain
224  否则 Domain of operation 等于default_domain_tag
228  Hash a key type and description.
调用者
名称描述
key_create_or_updatekey_create_or_update - Update or create and instantiate a key.*@keyring_ref: A pointer to the destination keyring with possession flag.*@type: The type of key.*@description: The searchable description for the key.
search_nested_keyringsSearch a tree of keyrings that point to other keyrings up to the maximum* depth.
key_get_persistentGet the persistent keyring for a specific UID and link it to the nominated* keyring.