Function report |
Source Code:fs\ioctl.c |
Create Date:2022-07-28 20:06:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd, unsigned long arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | Break |
682 | Case cmd == hese numbers need to be adjusted. |
683 | set_close_on_exec(fd, 0) |
684 | Break |
687 | error = ioctl_fionbio(filp, argp) |
688 | Break |
691 | error = ioctl_fioasync(fd, filp, argp) |
692 | Break |
694 | Case cmd == Get exact space used by quota |
697 | res = inode_get_bytes(inode) |
702 | Break |
705 | error = ioctl_fsfreeze(filp) |
706 | Break |
709 | error = ioctl_fsthaw(filp) |
710 | Break |
712 | Case cmd == FS_IOC_FIEMAP |
713 | Return ioctl_fiemap(filp, argp) |
715 | Case cmd == get the block size used for bmap |
717 | If Not s_blocksize Then Return -EINVAL |
719 | Return Write a simple value into user space(s_blocksize, (int__user * )argp) |
722 | Return ioctl_file_clone(filp, arg, 0, 0, 0) |
724 | Case cmd == FICLONERANGE |
725 | Return ioctl_file_clone_range(filp, argp) |
727 | Case cmd == FIDEDUPERANGE |
728 | Return ioctl_file_dedupe_range(filp, argp) |
730 | Default |
735 | Break |
737 | Return error |
Name | Describe |
---|---|
ksys_ioctl | |
COMPAT_SYSCALL_DEFINE3 |
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 |