函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_get_request - allocate a request*@q: request queue to allocate a request for*@op: operation (REQ_OP_*) and REQ_* flags, e.g. REQ_SYNC.*@flags: BLK_MQ_REQ_* flags, e.g. BLK_MQ_REQ_NOWAIT.

函数原型:struct request *blk_get_request(struct request_queue *q, unsigned int op, blk_mq_req_flags_t flags)

返回类型:struct request

参数:

类型参数名称
struct request_queue *q
unsigned intop
blk_mq_req_flags_tflags
585  WARN_ON_ONCE(op & REQ_NOWAIT)
586  WARN_ON_ONCE(flags & ~(BLK_MQ_REQ_NOWAIT | BLK_MQ_REQ_PREEMPT))
588  req等于blk_mq_alloc_request(q, op, flags)
589  如果非是错误initialize_rq_fninitialize_rq_fn(req)
592  返回:req
调用者
名称描述
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
bsg_transport_fill_hdr