函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_verify_command

函数原型:int blk_verify_command(unsigned char *cmd, fmode_t mode)

返回类型:int

参数:

类型参数名称
unsigned char *cmd
fmode_tmode
200  filter等于blk_default_cmd_filter
203  如果操作权限检查则返回:0
207  如果test_bit(cmd[0], read_ok)则返回:0
211  如果test_bit(cmd[0], write_ok)且mode按位与le is open for writing 则返回:0
214  返回:负EPERM
调用者
名称描述
blk_fill_sghdr_rq
sg_scsi_ioctlsg_scsi_ioctl -- handle deprecated SCSI_IOCTL_SEND_COMMAND ioctl*@q: request queue to send scsi commands down*@disk: gendisk to operate on (option)*@mode: mode used to open the file through which the ioctl has been* submitted*@sic: userspace structure
bsg_scsi_fill_hdr