函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Retrieve an inode's encryption policy

函数原型:static int fscrypt_get_policy(struct inode *inode, union fscrypt_policy *policy)

返回类型:int

参数:

类型参数名称
struct inode *inode
union fscrypt_policy *policy
253  ci等于READ_ONCE(i_crypt_info)
254  如果ci
256  policy等于The encryption policy used by this inode
257  返回:0
260  如果非IS_ENCRYPTED(inode)则返回:负ENODATA
263  ret等于get_context(inode, & ctx, ctx的长度)
264  如果ret小于0则返回:如果ret恒等于负ERANGE则负EINVAL否则ret
267  返回:scrypt_policy_from_context - convert an fscrypt_context to an fscrypt_policy* Given an fscrypt_context, build the corresponding fscrypt_policy.* Return: 0 on success, or -EINVAL if the fscrypt_context has an unrecognized* version number or size.