Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:compat_blkpg_ioctl

Proto:static int compat_blkpg_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, struct compat_blkpg_ioctl_arg __user *ua32)

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
fmode_tmode
unsigned intcmd
struct compat_blkpg_ioctl_arg __user *ua32
187  __user * a = Allocate user-space memory for the duration of a single system call,* in order to marshall parameters inside a compat thunk.
192  err = Get a simple variable from user space(n, & op)
193  err |= Write a simple value into user space(n, & op)
194  err |= Get a simple variable from user space(n, & flags)
195  err |= Write a simple value into user space(n, & flags)
196  err |= Get a simple variable from user space(n, & datalen)
197  err |= Write a simple value into user space(n, & datalen)
198  err |= Get a simple variable from user space(udata, & data)
199  err |= Write a simple value into user space(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., & data)
200  If err Then Return err
203  Return always keep this in sync with compat_blkdev_ioctl()
Caller
NameDescribe
compat_blkdev_ioctlMost of the generic ioctls are handled in the normal fallback path.This assumes the blkdev's low level compat_ioctl always returnsENOIOCTLCMD for unknown ioctls.