Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_verify_command

Proto:int blk_verify_command(unsigned char *cmd, fmode_t mode)

Type:int

Parameter:

TypeParameterName
unsigned char *cmd
fmode_tmode
200  filter = blk_default_cmd_filter
203  If Check operation authority Then Return 0
207  If Determine whether a bit is set(cmd[0], read_ok) Then Return 0
211  If Determine whether a bit is set(cmd[0], write_ok) && mode & le is open for writing Then Return 0
214  Return -EPERM
Caller
NameDescribe
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