Function report | 
Source Code:fs\ioctl.c | 
Create Date:2022-07-28 20:06:21 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:This provides compatibility with legacy XFS pre-allocation ioctls* which predate the fallocate syscall.* Only the l_start, l_len and l_whence fields of the 'struct space_resv'* are used here, rest are ignored.
Proto:int ioctl_preallocate(struct file *filp, int mode, void __user *argp)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct file * | filp | |
| int | mode | |
| void __user * | argp | 
| 472 | inode = file_inode(filp) | 
| 475 | If copy_from_user( & sr, argp, size of sr ) Then Return -EFAULT | 
| 479 | Case l_whence == seek relative to beginning of file | 
| 480 | Break | 
| 481 | Case l_whence == seek relative to current file position | 
| 484 | Case l_whence == seek relative to end of file | 
| 486 | Break | 
| 487 | Default | 
| 488 | Return -EINVAL | 
| 491 | Return vfs_fallocate(filp, mode | default is extend size , l_start, len == 0 means until end of file ) | 
| Name | Describe | 
|---|---|
| file_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  |