函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_file_from_index

函数原型:static inline struct file *io_file_from_index(struct io_ring_ctx *ctx, int index)

返回类型:struct file

参数:

类型参数名称
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  返回:files[index & IORING_FILE_TABLE_MASK]
调用者
名称描述
io_req_set_file
__io_sqe_files_unregister
io_sqe_files_register
io_sqe_file_unregister