Function report |
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 activity | Download SCCT | Chinese |
Name:blk_verify_command
Proto:int blk_verify_command(unsigned char *cmd, fmode_t mode)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned char * | cmd | |
fmode_t | mode |
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 |
Name | Describe |
---|---|
blk_fill_sghdr_rq | |
sg_scsi_ioctl | sg_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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |