函数逻辑报告 |
Source Code:mm\dmapool.c |
Create Date:2022-07-27 16:54:47 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:dma_pool_destroy - destroys a pool of dma memory blocks.*@pool: dma pool that will be destroyed* Context: !in_interrupt()* Caller guarantees that no more memory from the pool is in use,* and that nothing will try to use the pool after this call.
函数原型:void dma_pool_destroy(struct dma_pool *pool)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct dma_pool * | pool |
| 271 | bool empty = false |
| 273 | 如果此条件成立可能性小(为编译器优化)(!pool)则返回 |
| 276 | mutex_lock( & pools_reg_lock) |
| 277 | mutex_lock( & pools_lock) |
| 278 | 删除链表项 |
| 282 | 如果empty则device_remove_file(dev, & dev_attr_pools) |
| 290 | 如果is_page_busy(page)则 |
| 301 | 否则pool_free_page(pool, page) |
| 305 | 释放内存 |
| 名称 | 描述 |
|---|---|
| dmam_pool_release | Managed DMA pool |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |