Function report |
Source Code:include\linux\dma-mapping.h |
Create Date:2022-07-28 05:51:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dma_maps_sg_attrs returns 0 on error and > 0 on success.* It should never return a value < 0.
Proto:static inline int dma_map_sg_attrs(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dir, unsigned long attrs)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
struct scatterlist * | sg | |
int | nents | |
enum dma_data_direction | dir | |
unsigned long | attrs |
312 | ops = get_dma_ops(dev) |
315 | BUG_ON(!valid_dma_direction(dir)) |
316 | If dma_is_direct(ops) Then ents = dma_direct_map_sg(dev, sg, nents, dir, attrs) |
323 | Return ents |
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 |