Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:compat_hdio_ioctl

Proto:static int compat_hdio_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
fmode_tmode
unsigned intcmd
unsigned longarg
84  __user * p
87  p = Allocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk.
88  error = __blkdev_driver_ioctl(bdev, mode, cmd, (unsignedlong)p)
90  If error == 0 Then
91  __user * uvp = A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already.
93  If Get a simple variable from user space(v, p) || Write a simple value into user space(v, uvp) Then error = -EFAULT
96  Return error
Caller
NameDescribe
compat_blkdev_driver_ioctl