Function report |
Source Code:block\bsg-lib.c |
Create Date:2022-07-28 17:38:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bsg_transport_fill_hdr
Proto:static int bsg_transport_fill_hdr(struct request *rq, struct sg_io_v4 *hdr, fmode_t mode)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct request * | rq | |
| struct sg_io_v4 * | hdr | |
| fmode_t | mode |
| 39 | job = lk_mq_rq_to_pdu - cast a request to a PDU*@rq: the request to be casted* Return: pointer to the PDU* Driver command data is immediately after the request. So add request to get* the PDU. |
| 42 | request_len = [i] in bytes |
| 44 | If IS_ERR( Transport/driver specific request/reply structs ) Then Return PTR_ERR( Transport/driver specific request/reply structs ) |
| 49 | If IS_ERR( BIDI support ) Then |
| 50 | ret = PTR_ERR( BIDI support ) |
| 51 | Go to out |
| 54 | ret = blk_rq_map_user(q, BIDI support , NULL, uptr64( [i], [*o] ), [i] bytes to be transferred from device , GFP_KERNEL) |
| 57 | If ret Then Go to out_free_bidi_rq |
| 61 | Else |
| 62 | BIDI support = NULL |
| 63 | bidi_bio = NULL |
| 66 | Return 0 |
| 68 | out_free_bidi_rq : |
| 69 | If BIDI support Then blk_put_request( BIDI support ) |
| 71 | out : |
| 73 | Return ret |
| 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 |