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:ioctl_fionbio

Proto:static int ioctl_fionbio(struct file *filp, int __user *argp)

Type:int

Parameter:

TypeParameterName
struct file *filp
int __user *argp
553  error = Get a simple variable from user space(on, argp)
554  If error Then Return error
556  flag = O_NONBLOCK
562  spin_lock( & * Protects f_ep_links, f_flags. * Must not be taken from IRQ context.)
563  If on Then f_flags |= flag
565  Else f_flags &= ~flag
567  spin_unlock( & * Protects f_ep_links, f_flags. * Must not be taken from IRQ context.)
568  Return error
Caller
NameDescribe
do_vfs_ioctlWhen 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.