Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xa_insert() - Store this entry in the XArray unless another entry is* already present.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* Inserting a NULL entry will store a reserved entry (like xa_reserve())

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

Type:int

Parameter:

TypeParameterName
struct xarray *xa
unsigned longindex
void *entry
gfp_tgfp
770  xa_lock(xa)
771  err = __xa_insert(xa, index, entry, gfp)
772  xa_unlock(xa)
774  Return err
Caller
NameDescribe
xa_insert_index
check_cmpxchg
check_reserve