函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:scrypt_fname_alloc_buffer - allocate a buffer for presented filenames* Allocate a buffer that is large enough to hold any decrypted or encoded* filename (null-terminated), for the given maximum encrypted filename length

函数原型:int fscrypt_fname_alloc_buffer(const struct inode *inode, unsigned int max_encrypted_len, struct fscrypt_str *crypto_str)

返回类型:int

参数:

类型参数名称
const struct inode *inode
unsigned intmax_encrypted_len
struct fscrypt_str *crypto_str
209  max_encoded_len等于max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, BASE64_CHARS(FSCRYPT_FNAME_MAX_UNDIGESTED_SIZE), 1 + BASE64_CHARS(fscrypt_digested_name的长度))
214  max_presented_len等于两数取大(max_encoded_len, max_encrypted_len)
216  name等于开辟内存
217  如果非name则返回:负ENOMEM
219  len等于max_presented_len
220  返回:0
调用者
名称描述
fscrypt_get_symlinkscrypt_get_symlink - get the target of an encrypted symlink*@inode: the symlink inode*@caddr: the on-disk contents of the symlink*@max_size: size of @caddr buffer*@done: if successful, will be set up to free the returned target if needed