函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-27 16:04:19
Last Modify:2020-03-17 21:26:27 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:remap_pfn_range

函数原型:int remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longaddr
unsigned longpfn
unsigned longsize
pgprot_tprot
1655  如果addr不等于pfn左移PAGE_SHIFT determines the page size 位则返回:负EINVAL
1658  Flags, see mm.h. 或等于Memory mapped I/O or similar 按位或Page-ranges managed without "struct page", just pure PFN 按位或Cannot expand with mremap() 按位或Do not include in the core dump
1659  返回:0
调用者
名称描述
pseudo_lock_dev_mmap
dma_common_mmapCreate userspace mapping for the DMA-coherent memory.
sel_mmap_handle_status
io_uring_mmap