函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xas_next_marked() - Advance iterator to next marked entry.*@xas: XArray operation state.*@max: Highest index to return.*@mark: Mark to search for.* xas_next_marked() is an inline function to optimise xarray traversal for* speed

函数原型:static inline void *xas_next_marked(struct xa_state *xas, unsigned long max, xa_mark_t mark)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
unsigned longmax
xa_mark_tmark
1650  node等于xa_node
1653  如果此条件成立可能性小(为编译器优化)(True if the pointer is something other than a node || Bits remaining in each slot )则返回:xas_find_marked() - Find the next marked entry in the XArray.*@xas: XArray operation state.*@max: Highest index to return.*@mark: Mark number to search for.* If the @xas has not yet been walked to an entry, return the marked entry
1655  offset等于Private
1656  xa_offset等于offset
1657  xa_index等于xa_index按位与XA_CHUNK_MASK的反的值加offset
1658  如果xa_index大于max则返回:NULL
1660  如果offset恒等于XA_CHUNK_SIZE则返回:xas_find_marked() - Find the next marked entry in the XArray.*@xas: XArray operation state.*@max: Highest index to return.*@mark: Mark number to search for.* If the @xas has not yet been walked to an entry, return the marked entry
1662  返回:Private