函数逻辑报告 |
Source Code:fs\ioctl.c |
Create Date:2022-07-29 10:36:19 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:When you add any new common ioctls to the switches above and below* please update compat_sys_ioctl() too.* do_vfs_ioctl() is not for drivers and not intended to be EXPORT_SYMBOL()'d.* It's just a simple helper for sys_ioctl and compat_sys_ioctl.
函数原型:int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, unsigned long arg)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct file * | filp | |
| unsigned int | fd | |
| unsigned int | cmd | |
| unsigned long | arg |
| 673 | error等于0 |
| 675 | inode等于file_inode(filp) |
| 679 | set_close_on_exec(fd, 1) |
| 680 | 退出 |
| 683 | set_close_on_exec(fd, 0) |
| 684 | 退出 |
| 687 | error等于ioctl_fionbio(filp, argp) |
| 688 | 退出 |
| 697 | res等于inode_get_bytes(inode) |
| 702 | 退出 |
| 705 | error等于ioctl_fsfreeze(filp) |
| 706 | 退出 |
| 709 | error等于ioctl_fsthaw(filp) |
| 710 | 退出 |
| 712 | 当:cmd恒等于FS_IOC_FIEMAP |
| 713 | 返回:ioctl_fiemap(filp, argp) |
| 717 | 如果非s_blocksize则返回:负EINVAL |
| 719 | 返回:put_user - Write a simple value into user space(s_blocksize, (int__user * )argp) |
| 722 | 返回:ioctl_file_clone(filp, arg, 0, 0, 0) |
| 724 | 当:cmd恒等于FICLONERANGE |
| 725 | 返回:ioctl_file_clone_range(filp, argp) |
| 727 | 当:cmd恒等于FIDEDUPERANGE |
| 728 | 返回:ioctl_file_dedupe_range(filp, argp) |
| 730 | 默认 |
| 735 | 退出 |
| 737 | 返回:error |
| 名称 | 描述 |
|---|---|
| ksys_ioctl | |
| COMPAT_SYSCALL_DEFINE3 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |