Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\coherent.c Create Date:2022-07-28 10:33:53
Last Modify:2020-03-17 14:54:14 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__dma_release_from_coherent

Proto:static int __dma_release_from_coherent(struct dma_coherent_mem *mem, int order, void *vaddr)

Type:int

Parameter:

TypeParameterName
struct dma_coherent_mem *mem
intorder
void *vaddr
196  If mem && vaddr >= virt_base && vaddr < virt_base + (size << PAGE_SHIFT determines the page size ) Then
198  page = vaddr - virt_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  Return 1
206  Return 0
Caller
NameDescribe
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