Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\xarray.h Create Date:2022-07-28 05:42:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static inline __must_check int xa_reserve(struct xarray *xa, unsigned long index, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct xarray *xa
unsigned longindex
gfp_tgfp
1042  Return xa_err() - Turn an XArray result into an errno
Caller
NameDescribe
check_reserve
check_align_2We should always be able to store without allocating memory after* reserving a slot.