函数逻辑报告 |
Source Code:mm\memfd.c |
Create Date:2022-07-27 18:13:20 |
| Last Modify:2022-05-20 10:27:46 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:memfd_add_seals
函数原型:static int memfd_add_seals(struct file *file, unsigned int seals)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | file | |
| unsigned int | seals |
| 141 | inode等于file_inode(file) |
| 176 | 如果非f_mode按位与le is open for writing 的值则返回:负EPERM |
| 178 | 如果seals按位与F_ALL_SEALS的反则返回:负EINVAL |
| 181 | inode_lock(inode) |
| 184 | 如果非file_seals则 |
| 194 | 如果seals按位与prevent writes 且非file_seals按位与prevent writes 的值则 |
| 200 | 如果error则 |
| 202 | 转到:unlock |
| 206 | file_seals或等于seals |
| 207 | error等于0 |
| 209 | unlock : |
| 210 | inode_unlock(inode) |
| 211 | 返回:error |
| 名称 | 描述 |
|---|---|
| memfd_fcntl |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |