函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\xarray.h Create Date:2022-07-27 06:43:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:xa_reserve() - Reserve this index in the XArray.*@xa: XArray.*@index: Index into array.*@gfp: Memory allocation flags.* Ensures there is somewhere to store an entry at @index in the array.* If there is already something stored at @index, this function does

函数原型:static inline __must_check int xa_reserve(struct xarray *xa, unsigned long index, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct xarray *xa
unsigned longindex
gfp_tgfp
1042  返回:xa_err() - Turn an XArray result into an errno
调用者
名称描述
check_reserve
check_align_2We should always be able to store without allocating memory after* reserving a slot.