函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:将请求插入队列执行

函数原型:void blk_execute_rq(struct request_queue *q, struct gendisk *bd_disk, struct request *rq, int at_head)

返回类型:void

参数:

类型参数名称
struct request_queue *q
struct gendisk *bd_disk
struct request *rq
intat_head
82  Lockdep needs to run a non-constant initializer for on-stack* completions - so we use the _ONSTACK() variant for those that* are on the kernel stack:(wait)
85  end_io_data等于wait
86  lk_execute_rq_nowait - insert a request into queue for execution*@q: queue to insert the request in*@bd_disk: matching gendisk*@rq: request to insert*@at_head: insert request at head or tail of queue*@done: I/O completion handler* Description:* Insert a
89  hang_check等于Zero means infinite timeout - no checking done:
90  如果hang_check则当非wait_for_completion_io_timeout: - waits for completion of a task (w/timeout)*@x: holds the state of this particular completion*@timeout: timeout value in jiffies* This waits for either a completion of a specific task to be signaled or for a循环
92  否则wait_for_completion_io: - waits for completion of a task*@x: holds the state of this particular completion* This waits to be signaled for completion of a specific task. It is NOT* interruptible and there is no timeout. The caller is accounted as waiting
调用者
名称描述
sg_io
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
__blk_send_genericSend basic block requests
bsg_sg_io