Home
last modified time | relevance | path

Searched refs:xa_cmpxchg (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/include/linux/
Dxarray.h647 static inline void *xa_cmpxchg(struct xarray *xa, unsigned long index, in xa_cmpxchg() function
1007 return xa_err(xa_cmpxchg(xa, index, NULL, XA_ZERO_ENTRY, gfp)); in xa_reserve()
1057 xa_cmpxchg(xa, index, XA_ZERO_ENTRY, NULL, 0); in xa_release()
/Linux-v5.4/lib/
Dtest_xarray.c387 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, SIX, FIVE, GFP_KERNEL) != LOTS); in check_cmpxchg()
388 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, LOTS, FIVE, GFP_KERNEL) != LOTS); in check_cmpxchg()
389 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, FIVE, LOTS, GFP_KERNEL) != FIVE); in check_cmpxchg()
390 XA_BUG_ON(xa, xa_cmpxchg(xa, 5, FIVE, NULL, GFP_KERNEL) != NULL); in check_cmpxchg()
391 XA_BUG_ON(xa, xa_cmpxchg(xa, 5, NULL, FIVE, GFP_KERNEL) != NULL); in check_cmpxchg()
420 XA_BUG_ON(xa, xa_cmpxchg(xa, 12345678, XA_ZERO_ENTRY, in check_reserve()
/Linux-v5.4/Documentation/core-api/
Dxarray.rst81 xa_cmpxchg(). Like cmpxchg(), it will only succeed if
84 'old', then xa_cmpxchg() succeeded.
139 Using xa_store(), xa_cmpxchg() or xa_insert() will
158 The xa_store(), xa_cmpxchg(), xa_alloc(),
198 * xa_cmpxchg()