函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create ->s_master_keys if needed. Synchronized by fscrypt_add_key_mutex.

函数原型:static int allocate_filesystem_keyring(struct super_block *sb)

返回类型:int

参数:

类型参数名称
struct super_block *sb
203  如果s_master_keys则返回:0
206  format_fs_keyring_description(description, sb)
207  keyring等于keyring_alloc(description, GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.(), possessor can find a key in search / search a keyring | KEY_USR_SEARCH | KEY_USR_READ | user permissions... , in quota , NULL, NULL)
211  如果是错误则返回:错误
215  smp_store_release( & s_master_keys, keyring)
216  返回:0
调用者
名称描述
add_master_key