函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\ioctl.c Create Date:2022-07-29 10:36:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:just account for different alignment

函数原型:int compat_ioctl_preallocate(struct file *file, int mode, struct space_resv_32 __user *argp)

返回类型:int

参数:

类型参数名称
struct file *file
intmode
struct space_resv_32 __user *argp
501  inode等于file_inode(file)
504  如果copy_from_user( & sr, argp, sr的长度)则返回:负EFAULT
508  :l_whence恒等于seek relative to beginning of file
509  退出
510  :l_whence恒等于seek relative to current file position
511  l_start加等于f_pos
512  退出
513  :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  退出
516  默认
517  返回:负EINVAL
520  返回:vfs_fallocate(file, mode | default is extend size , l_start, len == 0 means until end of file )
调用者
名称描述
COMPAT_SYSCALL_DEFINE3