Function report |
Source Code:block\bsg-lib.c |
Create Date:2022-07-28 17:38:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sg_queue_rq - generic handler for bsg requests*@hctx: hardware queue*@bd: queue data* On error the create_bsg_job function should return a -Exyz error value* that will be set to ->result.* Drivers/subsys should pass this to the queue init function.
Proto:static blk_status_t bsg_queue_rq(struct blk_mq_hw_ctx *hctx, const struct blk_mq_queue_data *bd)
Type:blk_status_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct blk_mq_hw_ctx * | hctx | |
| const struct blk_mq_queue_data * | bd |
| 269 | sts = BLK_STS_IOERR |
| 272 | blk_mq_start_request(req) |
| 274 | If Not get_device - atomically increment the reference count for the device. Then Return BLK_STS_IOERR |
| 277 | If Not sg_prepare_job - create the bsg_job structure for the bsg request*@dev: device that is being sent the bsg request*@req: BSG request that needs a job structure Then Go to out |
| 281 | If Not ret Then sts = BLK_STS_OK |
| 284 | out : |
| 285 | put_device(dev) |
| 286 | Return sts |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |