Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io_uring.c Create Date:2022-07-28 20:22:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:io_uring_validate_mmap_request

Proto:static void *io_uring_validate_mmap_request(struct file *file, loff_t pgoff, size_t sz)

Type:void

Parameter:

TypeParameterName
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  Case offset == Magic offsets for the application to mmap the data it needs
5088  Case offset == IORING_OFF_CQ_RING
5089  ptr = rings
5090  Break
5091  Case offset == IORING_OFF_SQES
5092  ptr = sq_sqes
5093  Break
5094  Default
5095  Return ERR_PTR( - EINVAL)
5098  page = virt_to_head_page(ptr)
5099  If sz > Returns the number of bytes in this potentially compound page. Then Return ERR_PTR( - EINVAL)
5102  Return ptr
Caller
NameDescribe
io_uring_mmap