函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Search ->s_master_keys or ->mk_users

函数原型:static struct key *search_fscrypt_keyring(struct key *keyring, struct key_type *type, const char *description)

返回类型:struct key

参数:

类型参数名称
struct key *keyring
struct key_type *type
const char *description
141  keyref等于make_key_ref(keyring, true)
143  keyref等于keyring_search(keyref, type, description, false)
144  如果是错误
145  如果错误恒等于负EAGAIN错误恒等于负EKEYREVOKEDkeyref等于错误号
148  返回:错误指示
150  返回:key_ref_to_ptr(keyref)
调用者
名称描述
fscrypt_find_master_keyFind the specified master key in ->s_master_keys.* Returns ERR_PTR(-ENOKEY) if not found.
find_master_key_userFind the current user's "key" in the master key's ->mk_users.* Returns ERR_PTR(-ENOKEY) if not found.