Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__fscrypt_prepare_symlink

Proto:int __fscrypt_prepare_symlink(struct inode *dir, unsigned int len, unsigned int max_len, struct fscrypt_str *disk_link)

Type:int

Parameter:

TypeParameterName
struct inode *dir
unsigned intlen
unsigned intmax_len
struct fscrypt_str *disk_link
140  err = fscrypt_get_encryption_info(dir)
141  If err Then Return err
143  If Not fscrypt_has_encryption_key(dir) Then Return -ENOKEY
157  If Not fscrypt_fname_encrypted_size(dir, len, max_len - sizeof(structfscrypt_symlink_data), & len) Then Return -ENAMETOOLONG
161  len += sizeof(structfscrypt_symlink_data)
163  name = NULL
164  Return 0
Caller
NameDescribe
fscrypt_prepare_symlinkscrypt_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