函数逻辑报告 |
Source Code:fs\crypto\hooks.c |
Create Date:2022-07-29 10:57:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__fscrypt_encrypt_symlink
函数原型:int __fscrypt_encrypt_symlink(struct inode *inode, const char *target, unsigned int len, struct fscrypt_str *disk_link)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct inode * | inode | |
| const char * | target | |
| unsigned int | len | |
| struct fscrypt_str * | disk_link |
| 176 | err等于scrypt_require_key - require an inode's encryption key*@inode: the inode we need the key for* If the inode is encrypted, set up its encryption key if not already done |
| 180 | 如果name则 |
| 183 | 否则 |
| 188 | ciphertext_len等于len减sd的长度 |
| 189 | len等于cpu_to_le16(ciphertext_len) |
| 192 | 如果err则转到:err_free_sd |
| 200 | encrypted_path[ciphertext_len]等于'\0' |
| 204 | i_link等于kmemdup - duplicate region of memory*@src: memory region to duplicate*@len: memory region length*@gfp: GFP mask to use* Return: newly allocated copy of @src or %NULL in case of error |
| 205 | 如果非i_link则转到:err_free_sd |
| 210 | 返回:0 |
| 212 | err_free_sd : |
| 215 | 返回:err |
| 名称 | 描述 |
|---|---|
| fscrypt_encrypt_symlink | scrypt_encrypt_symlink - encrypt the symlink target if needed*@inode: symlink inode*@target: plaintext symlink target*@len: length of @target excluding null terminator*@disk_link: (in/out) the on-disk symlink target being prepared* If the symlink target |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |