Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\remap.c Create Date:2022-07-28 10:36:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Remaps an allocated contiguous region into another vm_area.* Cannot be used in non-sleeping contexts

Proto:void *dma_common_contiguous_remap(struct page *page, size_t size, pgprot_t prot, const void *caller)

Type:void

Parameter:

TypeParameterName
struct page *page
size_tsize
pgprot_tprot
const void *caller
69  pages = Allocation memory
70  If Not pages Then Return NULL
73  When i < size >> PAGE_SHIFT determines the page size cycle pages[i] = nth_page(page, i)
76  area = __dma_common_pages_remap(pages, size, prot, caller)
78  kfree(pages)
80  If Not area Then Return NULL
82  Return addr