Function report |
Source Code:fs\ioctl.c |
Create Date:2022-07-28 20:06:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ioctl_fiemap
Proto:static int ioctl_fiemap(struct file *filp, struct fiemap __user *ufiemap)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
struct fiemap __user * | ufiemap |
181 | struct fiemap_extent_info fieinfo = {0, } |
182 | inode = file_inode(filp) |
187 | If Not fiemap Then Return -EOPNOTSUPP |
190 | If copy_from_user( & fiemap, ufiemap, size of fiemap ) Then Return -EFAULT |
193 | If size of fm_extents array (in) > So that the fiemap access checks can't overflow on 32 bit machines. Then Return -EINVAL |
196 | error = fiemap_check_ranges(sb, logical offset (inclusive) at * which to start mapping (in) , logical length of mapping which * userspace wants (in) , & len) |
213 | error = fiemap(inode, & fieinfo, logical offset (inclusive) at * which to start mapping (in) , len) |
219 | Return error |
Name | Describe |
---|---|
do_vfs_ioctl | 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. |
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 |