Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\fname.c Create Date:2022-07-28 20:23:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fscrypt_fname_encrypted_size

Proto:bool fscrypt_fname_encrypted_size(const struct inode *inode, unsigned int orig_len, unsigned int max_len, unsigned int *encrypted_len_ret)

Type:bool

Parameter:

TypeParameterName
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  If orig_len > max_len Then Return false
191  encrypted_len = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(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 = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(encrypted_len, max_len)
194  Return true
Caller
NameDescribe
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