函数逻辑报告 |
Source Code:block\scsi_ioctl.c |
Create Date:2022-07-27 19:12:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:scsi_cmd_ioctl
函数原型:int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mode, unsigned int cmd, void __user *arg)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct request_queue * | q | |
struct gendisk * | bd_disk | |
fmode_t | mode | |
unsigned int | cmd | |
void __user * | arg |
655 | err等于sg_get_version(arg) |
656 | 退出 |
658 | err等于scsi_get_idlun(q, arg) |
659 | 退出 |
661 | err等于scsi_get_bus(q, arg) |
662 | 退出 |
663 | 当:cmd恒等于unit: jiffies (10ms on i386) |
664 | err等于sg_set_timeout(q, arg) |
665 | 退出 |
667 | err等于sg_get_timeout(q) |
668 | 退出 |
670 | err等于sg_get_reserved_size(q, arg) |
671 | 退出 |
673 | err等于sg_set_reserved_size(q, arg) |
674 | 退出 |
676 | err等于will always return that we are ATAPI even for a real SCSI drive, I'm not* so sure this is worth doing anything about (why would you care??) |
677 | 退出 |
692 | 当:cmd恒等于send a packet to the drive |
697 | 如果copy_from_user( & cgc, arg, cgc的长度)则退出 |
699 | timeout等于clock_t_to_jiffies(timeout) |
701 | [i] 'S' for SCSI generic (required) 等于'S' |
702 | [i] SCSI command length 等于cmd的长度 |
704 | err等于0 |
706 | 当:data_direction恒等于CGC_DATA_UNKNOWN |
709 | 当:data_direction恒等于CGC_DATA_WRITE |
712 | 当:data_direction恒等于CGC_DATA_READ |
715 | 当:data_direction恒等于CGC_DATA_NONE |
718 | 默认 |
726 | 如果 [i], [*o] points to sense_buffer memory 则 [i] max length to write to sbp 等于sizeof(structrequest_sense) |
728 | [i] MAX_UINT->no timeout (unit: millisec) 等于Convert jiffies to milliseconds and back.* Avoid unnecessary multiplications/divisions in the* two most common HZ cases: |
730 | [i] SCSI command length 等于cmd的长度 |
736 | 如果 [o] scsi status 则err等于负EIO |
744 | 退出 |
750 | 当:cmd恒等于SCSI_IOCTL_SEND_COMMAND |
757 | 退出 |
758 | 当:cmd恒等于pendant of CDROMEJECT |
759 | err等于blk_send_start_stop(q, bd_disk, 0x03) |
760 | 退出 |
761 | 当:cmd恒等于Ejects the cdrom media |
762 | err等于blk_send_start_stop(q, bd_disk, 0x02) |
763 | 退出 |
764 | 默认 |
768 | 返回:err |
名称 | 描述 |
---|---|
scsi_cmd_blk_ioctl | |
bsg_ioctl |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |