Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\ioctl.c Create Date:2022-07-28 20:06:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ksys_ioctl

Proto:int ksys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)

Type:int

Parameter:

TypeParameterName
unsigned intfd
unsigned intcmd
unsigned longarg
743  f = fdget(fd)
745  If Not file Then Return -EBADF
747  error = security_file_ioctl(file, cmd, arg)
748  If Not error Then error = When 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.
750  fdput(f)
751  Return error
Caller
NameDescribe
rd_load_image
handle_initrd
md_setup_drive
autodetect_raid
SYSCALL_DEFINE3