函数逻辑报告 |
Source Code:mm\dmapool.c |
Create Date:2022-07-27 16:54:55 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dma_pool_free - put block back into dma pool*@pool: the dma pool holding the block*@vaddr: virtual address of block*@dma: dma address of block* Caller promises neither device nor driver will again touch this block* unless it is first re-allocated.
函数原型:void dma_pool_free(struct dma_pool *pool, void *vaddr, dma_addr_t dma)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct dma_pool * | pool | |
void * | vaddr | |
dma_addr_t | dma |
416 | spin_lock_irqsave( & lock, flags) |
417 | page等于pool_find_page(pool, dma) |
418 | 如果非page则 |
419 | spin_unlock_irqrestore( & lock, flags) |
427 | 返回 |
431 | 如果want_init_on_free()则memset(vaddr, 0, size) |
465 | in_use自减 |
473 | spin_unlock_irqrestore( & lock, flags) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |