函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rings_size

函数原型:static unsigned long rings_size(unsigned sq_entries, unsigned cq_entries, size_t *sq_offset)

返回类型:unsigned long

参数:

类型参数名称
unsignedsq_entries
unsignedcq_entries
size_t *sq_offset
4677  off等于struct_size() - Calculate size of structure with trailing array.*@p: Pointer to the structure.*@member: Name of the array member.*@n: Number of elements in the array.* Calculates size of memory needed for structure @p followed by an(rings, cqes, cq_entries)
4678  如果off恒等于SIZE_MAX则返回:SIZE_MAX
4687  sq_array_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.
4688  如果sq_array_size恒等于SIZE_MAX则返回:SIZE_MAX
4691  如果For simplicity and code hygiene, the fallback code below insists on* a, b and *d having the same type (similar to the min() and max()* macros), whereas gcc's type-generic overflow checkers accept* different types(off, sq_array_size, & off)则返回:SIZE_MAX
4694  如果sq_offsetsq_offset等于off
4697  返回:off
调用者
名称描述
ring_pages
io_allocate_scq_urings