函数逻辑报告

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

函数名称:Private

函数原型:static inline unsigned int xas_find_chunk(struct xa_state *xas, bool advance, xa_mark_t mark)

返回类型:unsigned int

参数:

类型参数名称
struct xa_state *xas
booladvance
xa_mark_tmark
1618  addr等于marks[(__forceunsigned)mark]
1619  offset等于xa_offset
1621  如果advanceoffset自加
1623  如果XA_CHUNK_SIZE恒等于BITS_PER_LONG
1624  如果offset小于XA_CHUNK_SIZE
1625  data等于addr按位与0UL的反左移offset
1626  如果data则返回:在字中找到第一个指定位
1629  返回:XA_CHUNK_SIZE
1632  返回:d_next_bit - find the next set bit in a memory region*@addr: The address to base the search on*@offset: The bitnumber to start searching at*@size: The bitmap size in bits* Returns the bit number for the next set bit* If no bits are set, returns @size.
调用者
名称描述
xas_find_markedxas_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
xas_next_markedxas_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