Function report | 
Source Code:block\bsg-lib.c | 
Create Date:2022-07-28 17:38:30 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:bsg_map_buffer
Proto:static int bsg_map_buffer(struct bsg_buffer *buf, struct request *req)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct bsg_buffer * | buf | |
| struct request * | req | 
| 203 | sz = sizeof(structscatterlist) * * Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed. | 
| 205 | BUG_ON(!* Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed.) | 
| 207 | sg_list = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). | 
| 211 | sg_cnt = map a request to scatterlist, return number of sg entries setup. Caller* must make sure sg can hold rq->nr_phys_segments entries | 
| 212 | payload_len = blk_rq_bytes(req) | 
| 213 | Return 0 | 
| Name | Describe | 
|---|---|
| bsg_prepare_job | 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 | 
| 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  |