函数逻辑报告 |
Source Code:fs\crypto\policy.c |
Create Date:2022-07-29 10:57:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:fscrypt_ioctl_set_policy
函数原型:int fscrypt_ioctl_set_policy(struct file *filp, const void __user *arg)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
const void __user * | arg |
316 | inode等于file_inode(filp) |
321 | 如果Careful: we have to cast the result to the type of the pointer* for sign reasons(version, (constu8__user * )arg)则返回:负EFAULT |
324 | size等于Return the size expected for the given fscrypt_policy based on its version* number, or 0 if the policy version is unrecognized. |
340 | 如果copy_from_user( & policy, arg, size)则返回:负EFAULT |
351 | inode_lock(inode) |
353 | ret等于fscrypt_get_policy(inode, & existing_policy) |
357 | 否则如果IS_DEADDIR(inode)则ret等于负ENOENT |
361 | 否则ret等于set_encryption_policy(inode, & policy) |
370 | inode_unlock(inode) |
372 | mnt_drop_write_file(filp) |
373 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |