函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_fill_sghdr_rq

函数原型:static int blk_fill_sghdr_rq(struct request_queue *q, struct request *rq, struct sg_io_hdr *hdr, fmode_t mode)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct request *rq
struct sg_io_hdr *hdr
fmode_tmode
221  req等于scsi_req(rq)
223  如果copy_from_user(cmd, [i], [*i] points to command to perform , [i] SCSI command length )则返回:负EFAULT
225  如果blk_verify_command(cmd, mode)则返回:负EPERM
231  cmd_len等于 [i] SCSI command length
233  timeout等于msecs_to_jiffies: - convert milliseconds to jiffies*@m: time in milliseconds* conversion is done as follows:* - negative values mean 'infinite timeout' (MAX_JIFFY_OFFSET)* - 'too large' values [that would result in larger than
234  如果非timeouttimeout等于* sg stuff
236  如果非timeouttimeout等于default timeout for SG_IO if none specified
238  如果timeout小于BLK_MIN_SG_TIMEOUTtimeout等于BLK_MIN_SG_TIMEOUT
241  返回:0
调用者
名称描述
sg_io