函数逻辑报告

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_validate_mmap_request

函数原型:static void *io_uring_validate_mmap_request(struct file *file, loff_t pgoff, size_t sz)

返回类型:void

参数:

类型参数名称
struct file *file
loff_tpgoff
size_tsz
5081  ctx等于 needed for tty driver, and maybe others
5082  offset等于pgoff左移PAGE_SHIFT determines the page size
5087  :offset恒等于Magic offsets for the application to mmap the data it needs
5088  :offset恒等于IORING_OFF_CQ_RING
5089  ptr等于rings
5090  退出
5091  :offset恒等于IORING_OFF_SQES
5092  ptr等于sq_sqes
5093  退出
5094  默认
5095  返回:错误号
5098  page等于virt_to_head_page(ptr)
5099  如果sz大于Returns the number of bytes in this potentially compound page. 则返回:错误号
5102  返回:ptr
调用者
名称描述
io_uring_mmap