Function report |
Source Code:include\linux\dma-mapping.h |
Create Date:2022-07-28 05:51:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dma_map_single_attrs
Proto:static inline dma_addr_t dma_map_single_attrs(struct device *dev, void *ptr, size_t size, enum dma_data_direction dir, unsigned long attrs)
Type:dma_addr_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
void * | ptr | |
size_t | size | |
enum dma_data_direction | dir | |
unsigned long | attrs |
584 | If dev_WARN_ONCE(dev, Determine if an address is within the vmalloc range* On nommu, vmalloc/vfree wrap through kmalloc/kfree directly, so there* is no special casing required., "rejecting DMA map of vmalloc memory\n") Then Return DMA_MAPPING_ERROR |
587 | debug_dma_map_single(dev, ptr, size) |
588 | Return dma_map_page_attrs(dev, virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(ptr), offset_in_page(ptr), size, dir, attrs) |
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 |