Function report |
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 activity | Download SCCT | Chinese |
Name:__fscrypt_encrypt_symlink
Proto:int __fscrypt_encrypt_symlink(struct inode *inode, const char *target, unsigned int len, struct fscrypt_str *disk_link)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If name Then |
183 | Else |
184 | sd = Allocation memory |
188 | ciphertext_len = len - size of sd |
189 | len = cpu_to_le16(ciphertext_len) |
192 | If err Then Go to 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 | If Not i_link Then Go to err_free_sd |
210 | Return 0 |
212 | err_free_sd : |
215 | Return err |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |