Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\scsi_ioctl.c Create Date:2022-07-28 17:36:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Send basic block requests

Proto:static int __blk_send_generic(struct request_queue *q, struct gendisk *bd_disk, int cmd, int data)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
struct gendisk *bd_disk
intcmd
intdata
534  rq = 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.
535  If IS_ERR(rq) Then Return PTR_ERR(rq)
537  timeout = default timeout for SG_IO if none specified
538  cmd[0] = cmd
539  cmd[4] = data
540  cmd_len = 6
541  lk_execute_rq - 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* Description:* Insert a fully prepared request at the back of
542  err = If result Then -EIO Else 0
543  blk_put_request(rq)
545  Return err
Caller
NameDescribe
blk_send_start_stop