Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blkdev_roset

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

Type:int

Parameter:

TypeParameterName
struct block_device *bdev
fmode_tmode
unsignedcmd
unsigned longarg
420  If Not Check operation authority Then Return -EACCES
423  ret = __blkdev_driver_ioctl(bdev, mode, cmd, arg)
424  If Not Is it an unrecognized ioctl? The correct returns are either* ENOTTY (final) or ENOIOCTLCMD ("I don't know this one, try a* fallback"). ENOIOCTLCMD gets turned into ENOTTY by the ioctl* code before returning. Then Return ret
426  If Get a simple variable from user space(n, (int__user * )arg) Then Return -EFAULT
428  set_device_ro(bdev, n)
429  Return 0
Caller
NameDescribe
blkdev_ioctlalways keep this in sync with compat_blkdev_ioctl()