函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-29 10:55:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:io_uring_mmap

函数原型:static int io_uring_mmap(struct file *file, struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
struct file *file
struct vm_area_struct *vma
5109  sz等于The first byte after our end addresswithin vm_mm. Our start address within vm_mm.
5113  ptr等于io_uring_validate_mmap_request(file, Offset (within vm_file) in PAGE_SIZEunits , sz)
5114  如果是错误则返回:错误
5117  pfn等于virt_to_phys - map virtual addresses to physical*@address: address to remap* The returned physical address is the physical (CPU) mapping for* the memory address given. It is only valid to use this function on右移PAGE_SHIFT determines the page size
5118  返回:remap_pfn_range(vma, Our start address within vm_mm. , pfn, sz, Access permissions of this VMA. )