函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:io_allocate_scq_urings

函数原型:static int io_allocate_scq_urings(struct io_ring_ctx *ctx, struct io_uring_params *p)

返回类型:int

参数:

类型参数名称
struct io_ring_ctx *ctx
struct io_uring_params *p
5236  size等于rings_size(sq_entries, cq_entries, & sq_array_offset)
5237  如果size恒等于SIZE_MAX则返回:负EOVERFLOW
5240  rings等于io_mem_alloc(size)
5241  如果非rings则返回:负ENOMEM
5244  rings等于rings
5245  * Ring buffer of indices into array of io_uring_sqe, which is * mmapped by the application using the IORING_OFF_SQES offset. * This indirection could e.g. be used to assign fixed * io_uring_sqe entries to operations and only submit them to * the queue when等于ringssq_array_offset
5246  Bitmasks to apply to head and tail offsets (constant, equals* ring_entries - 1)等于sq_entries减1
5247  Bitmasks to apply to head and tail offsets (constant, equals* ring_entries - 1)等于cq_entries减1
5248  Ring sizes (constant, power of 2) 等于sq_entries
5249  Ring sizes (constant, power of 2) 等于cq_entries
5250  sq_mask等于Bitmasks to apply to head and tail offsets (constant, equals* ring_entries - 1)
5251  cq_mask等于Bitmasks to apply to head and tail offsets (constant, equals* ring_entries - 1)
5252  sq_entries等于Ring sizes (constant, power of 2)
5253  cq_entries等于Ring sizes (constant, power of 2)
5255  size等于array_size() - Calculate size of 2-dimensional array.*@a: dimension one*@b: dimension two* Calculates size of 2-dimensional array: @a *@b.* Returns: number of bytes needed to represent the array or SIZE_MAX on* overflow.
5256  如果size恒等于SIZE_MAX
5257  io_mem_free(rings)
5258  rings = NULL
5259  返回:负EOVERFLOW
5262  sq_sqes等于io_mem_alloc(size)
5263  如果非sq_sqes
5264  io_mem_free(rings)
5265  rings = NULL
5266  返回:负ENOMEM
5269  返回:0
调用者
名称描述
io_uring_create