Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
struct file *file
intmode
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
511  l_start += f_pos
512  Break
513  Case l_whence == seek relative to end of file
514  l_start += NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they
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 )
Caller
NameDescribe
COMPAT_SYSCALL_DEFINE3