函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\coherent.c Create Date:2022-07-27 11:33:42
Last Modify:2020-03-17 14:54:14 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__dma_release_from_coherent

函数原型:static int __dma_release_from_coherent(struct dma_coherent_mem *mem, int order, void *vaddr)

返回类型:int

参数:

类型参数名称
struct dma_coherent_mem *mem
intorder
void *vaddr
196  如果memvaddr大于等于virt_basevaddr小于virt_basesize左移PAGE_SHIFT determines the page size 位的值则
198  page等于vaddrvirt_base右移PAGE_SHIFT determines the page size
201  spin_lock_irqsave( & spinlock, flags)
202  map_release_region - release allocated bitmap region*@bitmap: array of unsigned longs corresponding to the bitmap*@pos: beginning of bit region to release*@order: region size (log base 2 of number of bits) to release* This is the complement to
203  spin_unlock_irqrestore( & spinlock, flags)
204  返回:1
206  返回:0
调用者
名称描述
dma_release_from_dev_coherentdma_release_from_dev_coherent() - free memory to device coherent memory pool*@dev: device from which the memory was allocated*@order: the order of pages allocated*@vaddr: virtual address of allocated pages* This checks whether the memory was allocated
dma_release_from_global_coherent