Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\cma.c Create Date:2022-07-28 16:32:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ma_release() - release allocated pages*@cma: Contiguous memory region for which the allocation is performed

Proto:bool cma_release(struct cma *cma, const struct page *pages, unsigned int count)

Type:bool

Parameter:

TypeParameterName
struct cma *cma
const struct page *pages
unsigned intcount
516  If Not cma || Not pages Then Return false
519  pr_debug("%s(page %p)\n", __func__, (void * )pages)
521  pfn = page_to_pfn(pages)
523  If pfn < base_pfn || pfn >= base_pfn + count Then Return false
526  VM_BUG_ON(pfn + count > base_pfn + count)
528  free_contig_range(pfn, count)
529  cma_clear_bitmap(cma, pfn, count)
530  trace_cma_release(pfn, pages, count)
532  Return true
Caller
NameDescribe
dma_free_contiguousdma_free_contiguous() - release allocated pages*@dev: Pointer to device for which the pages were allocated
cma_free_mem