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:just account for different alignment
Proto:int compat_ioctl_preallocate(struct file *file, int mode, struct space_resv_32 __user *argp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | file | |
| int | mode | |
| struct space_resv_32 __user * | argp |
| 501 | inode = file_inode(file) |
| 504 | If copy_from_user( & sr, argp, size of sr ) Then Return -EFAULT |
| 508 | Case l_whence == seek relative to beginning of file |
| 509 | Break |
| 510 | Case l_whence == seek relative to current file position |
| 513 | Case l_whence == seek relative to end of file |
| 515 | Break |
| 516 | Default |
| 517 | Return -EINVAL |
| 520 | Return vfs_fallocate(file, mode | default is extend size , l_start, len == 0 means until end of file ) |
| Name | Describe |
|---|---|
| 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 |