Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\xarray.c Create Date:2022-07-28 06:13:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__xa_alloc_cyclic() - Find somewhere to store this entry in the XArray.*@xa: XArray.*@id: Pointer to ID.*@entry: New entry.*@limit: Range of allocated ID.*@next: Pointer to next ID to allocate.*@gfp: Memory allocation flags.

Proto:int __xa_alloc_cyclic(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct xarray *xa
u32 *id
void *entry
struct xa_limitlimit
u32 *next
gfp_tgfp
1664  min = min
1667  min = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(min, * next)
1668  ret = __xa_alloc() - Find somewhere to store this entry in the XArray
1669  If private: The rest of the data structure is not to be used directly. & XA_FLAGS_ALLOC_WRAPPED && ret == 0 Then
1670  private: The rest of the data structure is not to be used directly. &= ~XA_FLAGS_ALLOC_WRAPPED
1671  ret = 1
1674  If ret < 0 && min > min Then
1675  min = min
1676  ret = __xa_alloc() - Find somewhere to store this entry in the XArray
1677  If ret == 0 Then ret = 1
1681  If ret >= 0 Then
1682  next = id + 1
1683  If next == 0 Then private: The rest of the data structure is not to be used directly. |= XA_FLAGS_ALLOC_WRAPPED
1686  Return ret