Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\fscrypt.h Create Date:2022-07-28 20:02:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

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

Type:int

Parameter:

TypeParameterName
struct inode *dir
const char *target
unsigned intlen
unsigned intmax_len
struct fscrypt_str *disk_link
705  If IS_ENCRYPTED(dir) || fscrypt_dummy_context_enabled(dir) Then Return __fscrypt_prepare_symlink(dir, len, max_len, disk_link)
708  name = target
709  len = len + 1
710  If len > max_len Then Return -ENAMETOOLONG
712  Return 0