Function report |
Source Code:kernel\dma\mapping.c |
Create Date:2022-07-28 10:32:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:The whole dma_get_sgtable() idea is fundamentally unsafe - it seems* that the intention is to allow exporting memory allocated via the* coherent DMA APIs through the dma_buf API, which only accepts a* scattertable. This presents a couple of problems:* 1
Proto:int dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct device * | dev | |
| struct sg_table * | sgt | |
| void * | cpu_addr | |
| dma_addr_t | dma_addr | |
| size_t | size | |
| unsigned long | attrs |
| 139 | ops = get_dma_ops(dev) |
| 141 | If dma_is_direct(ops) Then Return dma_direct_get_sgtable(dev, sgt, cpu_addr, dma_addr, size, attrs) |
| 144 | If Not get_sgtable Then Return -ENXIO |
| 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 |