函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\remap.c Create Date:2022-07-27 11:36:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__dma_common_pages_remap

函数原型:static struct vm_struct *__dma_common_pages_remap(struct page **pages, size_t size, pgprot_t prot, const void *caller)

返回类型:struct vm_struct

参数:

类型参数名称
struct page **pages
size_tsize
pgprot_tprot
const void *caller
28  area等于get_vm_area_caller(size, dma_alloc_coherent , caller)
29  如果非area则返回:NULL
32  如果map_vm_area(area, prot, pages)则
33  vunmap(addr)
34  返回:NULL
37  返回:area
调用者
名称描述
dma_common_pages_remapRemaps an array of PAGE_SIZE pages into another vm_area.* Cannot be used in non-sleeping contexts
dma_common_contiguous_remapRemaps an allocated contiguous region into another vm_area.* Cannot be used in non-sleeping contexts