Function report |
Source Code:kernel\dma\direct.c |
Create Date:2022-07-28 10:33:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dma_direct_map_sg
Proto:int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl, int nents, enum dma_data_direction dir, unsigned long attrs)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
struct scatterlist * | sgl | |
int | nents | |
enum dma_data_direction | dir | |
unsigned long | attrs |
393 | dma_address = dma_direct_map_page(dev, sg_page(sg), offset, length, dir, attrs) |
395 | If dma_address == DMA_MAPPING_ERROR Then Go to out_unmap |
397 | sg_dma_len(sg) = length |
400 | Return nents |
402 | out_unmap : |
404 | Return 0 |
Name | Describe |
---|---|
dma_map_sg_attrs | dma_maps_sg_attrs returns 0 on error and > 0 on success.* It should never return a value < 0. |
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 |