Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xa_cmpxchg() - Conditionally replace an entry in the XArray.*@xa: XArray.*@index: Index into array.*@old: Old value to test against.*@entry: New value to place in array.*@gfp: Memory allocation flags.

Proto:static inline void *xa_cmpxchg(struct xarray *xa, unsigned long index, void *old, void *entry, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
struct xarray *xa
unsigned longindex
void *old
void *entry
gfp_tgfp
687  xa_lock(xa)
688  curr = __xa_cmpxchg(xa, index, old, entry, gfp)
689  xa_unlock(xa)
691  Return curr
Caller
NameDescribe
check_cmpxchg
check_reserve