函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fscrypt_fname_encrypted_size

函数原型:bool fscrypt_fname_encrypted_size(const struct inode *inode, unsigned int orig_len, unsigned int max_len, unsigned int *encrypted_len_ret)

返回类型:bool

参数:

类型参数名称
const struct inode *inode
unsigned intorig_len
unsigned intmax_len
unsigned int *encrypted_len_ret
184  ci等于i_crypt_info
185  padding等于4左移Return the flags (FSCRYPT_POLICY_FLAG*) of a valid encryption policy 按位与FSCRYPT_POLICY_FLAGS_PAD_MASK的值位
189  如果orig_len大于max_len则返回:false
191  encrypted_len等于两数取大(orig_len, (u32)ld names; don't add anything new here! )
192  encrypted_len等于und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(encrypted_len, padding)
193  encrypted_len_ret等于两数取小(encrypted_len, max_len)
194  返回:true
调用者
名称描述
fscrypt_setup_filenamescrypt_setup_filename() - prepare to search a possibly encrypted directory*@dir: the directory that will be searched*@iname: the user-provided filename being searched for*@lookup: 1 if we're allowed to proceed without the key because it's* ->lookup() or
__fscrypt_prepare_symlink