| Function report | 
| Source Code: fs\crypto\hooks.c | Create Date:2022-07-28 20:23:45 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:scrypt_file_open - prepare to open a possibly-encrypted regular file*@inode: the inode being opened*@filp: the struct file being set up* Currently, an encrypted regular file can only be opened if its encryption key
Proto:int fscrypt_file_open(struct inode *inode, struct file *filp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct inode * | inode | |
| struct file * | filp | 
| 35 | 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 | 
| 39 | dir = dget_parent(file_dentry(filp)) | 
| 42 | fscrypt_warn(inode, "Inconsistent encryption context (parent directory: %lu)", i_ino) | 
| 48 | Return err | 
| 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 |