函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Send basic block requests

函数原型:static int __blk_send_generic(struct request_queue *q, struct gendisk *bd_disk, int cmd, int data)

返回类型:int

参数:

类型参数名称
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  如果是错误则返回:错误
537  timeout等于default timeout for SG_IO if none specified
538  cmd[0]等于cmd
539  cmd[4]等于data
540  cmd_len等于6
541  将请求插入队列执行
542  err等于如果result则负EIO否则0
543  blk_put_request(rq)
545  返回:err
调用者
名称描述
blk_send_start_stop