函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:supported_iv_ino_lblk_64_policy

函数原型:static bool supported_iv_ino_lblk_64_policy(const struct fscrypt_policy_v2 *policy, const struct inode *inode)

返回类型:bool

参数:

类型参数名称
const struct fscrypt_policy_v2 *policy
const struct inode *inode
36  sb等于i_sb
37  ino_bits等于64, lblk_bits等于64
39  如果flags按位与FSCRYPT_POLICY_FLAG_DIRECT_KEY
40  fscrypt_warn(inode, "The DIRECT_KEY and IV_INO_LBLK_64 flags are mutually exclusive")
42  返回:false
48  如果非has_stable_inodes或非has_stable_inodes(sb)则
50  fscrypt_warn(inode, "Can't use IV_INO_LBLK_64 policy on filesystem '%s' because it doesn't have stable inode numbers", s_id)
53  返回:false
55  如果get_ino_and_lblk_bitsget_ino_and_lblk_bits(sb, & ino_bits, & lblk_bits)
57  如果ino_bits大于32或lblk_bits大于32则
58  fscrypt_warn(inode, "Can't use IV_INO_LBLK_64 policy on filesystem '%s' because it doesn't use 32-bit inode and block numbers", s_id)
61  返回:false
63  返回:true
调用者
名称描述
fscrypt_supported_policy
fscrypt_supported_policyscrypt_supported_policy - check whether an encryption policy is supported* Given an encryption policy, check whether all its encryption modes and other* settings are supported by this kernel