Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_file_from_index

Proto:static inline struct file *io_file_from_index(struct io_ring_ctx *ctx, int index)

Type:struct file

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
intindex
3391  table = * If used, fixed file set. Writers must ensure that ->refs is dead, * readers must ensure that ->refs is alive as long as the file* is * used. Only updated through io_uring_register(2).[index >> Shift of 9 is 512 entries, or exactly one page on 64-bit archs]
3392  Return files[index & IORING_FILE_TABLE_MASK]
Caller
NameDescribe
io_req_set_file
__io_sqe_files_unregister
io_sqe_files_register
io_sqe_file_unregister