Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_sqe_alloc_file_tables

Proto:static int io_sqe_alloc_file_tables(struct io_ring_ctx *ctx, unsigned nr_tables, unsigned nr_files)

Type:int

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
unsignednr_tables
unsignednr_files
4257  When i < nr_tables cycle
4258  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).[i]
4261  this_files = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(nr_files, IORING_MAX_FILES_TABLE)
4262  files = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
4264  If Not files Then Break
4266  nr_files -= this_files
4269  If i == nr_tables Then Return 0
4272  When i < nr_tables cycle
4273  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).[i]
4274  kfree(files)
4276  Return 1
Caller
NameDescribe
io_sqe_files_register