函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\ioctl.c Create Date:2022-07-27 18:51:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blkdev_roset

函数原型:static int blkdev_roset(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
fmode_tmode
unsignedcmd
unsigned longarg
420  如果非操作权限检查则返回:负EACCES
423  ret等于__blkdev_driver_ioctl(bdev, mode, cmd, arg)
424  如果非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.则返回:ret
426  如果Careful: we have to cast the result to the type of the pointer* for sign reasons(n, (int__user * )arg)则返回:负EFAULT
428  set_device_ro(bdev, n)
429  返回:0
调用者
名称描述
blkdev_ioctlalways keep this in sync with compat_blkdev_ioctl()