Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-core.c Create Date:2022-07-28 16:59:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:struct request *blk_get_request(struct request_queue *q, unsigned int op, blk_mq_req_flags_t flags)

Type:struct request

Parameter:

TypeParameterName
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  If Not IS_ERR(req) && initialize_rq_fn Then initialize_rq_fn(req)
592  Return req
Caller
NameDescribe
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