函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\xarray.c Create Date:2022-07-27 07:10:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__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.

函数原型:int __xa_alloc_cyclic(struct xarray *xa, u32 *id, void *entry, struct xa_limit limit, u32 *next, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct xarray *xa
u32 *id
void *entry
struct xa_limitlimit
u32 *next
gfp_tgfp
1664  min等于min
1667  min等于两数取大(min, * next)
1668  ret等于__xa_alloc() - Find somewhere to store this entry in the XArray
1669  如果private: The rest of the data structure is not to be used directly. 按位与XA_FLAGS_ALLOC_WRAPPEDret恒等于0则
1670  private: The rest of the data structure is not to be used directly. 与等于XA_FLAGS_ALLOC_WRAPPED的反
1671  ret等于1
1674  如果ret小于0且min大于min
1675  min等于min
1676  ret等于__xa_alloc() - Find somewhere to store this entry in the XArray
1677  如果ret恒等于0则ret等于1
1681  如果ret大于等于0则
1682  next等于id加1
1683  如果next恒等于0则private: The rest of the data structure is not to be used directly. 或等于XA_FLAGS_ALLOC_WRAPPED
1686  返回:ret