函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fscrypt.h Create Date:2022-07-29 10:32:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:scrypt_prepare_symlink - prepare to create a possibly-encrypted symlink*@dir: directory in which the symlink is being created*@target: plaintext symlink target*@len: length of @target excluding null terminator*@max_len: space the filesystem has available

函数原型:static inline int fscrypt_prepare_symlink(struct inode *dir, const char *target, unsigned int len, unsigned int max_len, struct fscrypt_str *disk_link)

返回类型:int

参数:

类型参数名称
struct inode *dir
const char *target
unsigned intlen
unsigned intmax_len
struct fscrypt_str *disk_link
705  如果IS_ENCRYPTED(dir)或fscrypt_dummy_context_enabled(dir)则返回:__fscrypt_prepare_symlink(dir, len, max_len, disk_link)
708  name等于target
709  len等于len加1
710  如果len大于max_len则返回:负ENAMETOOLONG
712  返回:0