函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__fscrypt_prepare_symlink

函数原型:int __fscrypt_prepare_symlink(struct inode *dir, unsigned int len, unsigned int max_len, struct fscrypt_str *disk_link)

返回类型:int

参数:

类型参数名称
struct inode *dir
unsigned intlen
unsigned intmax_len
struct fscrypt_str *disk_link
140  err等于fscrypt_get_encryption_info(dir)
141  如果err则返回:err
143  如果非fscrypt_has_encryption_key(dir)则返回:负ENOKEY
157  如果非fscrypt_fname_encrypted_size(dir, len, max_len - sizeof(structfscrypt_symlink_data), & len)则返回:负ENAMETOOLONG
161  len加等于sizeof(structfscrypt_symlink_data)
163  name = NULL
164  返回:0
调用者
名称描述
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