Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\xarray.h Create Date:2022-07-28 05:42:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Private

Proto:static inline unsigned int xas_find_chunk(struct xa_state *xas, bool advance, xa_mark_t mark)

Type:unsigned int

Parameter:

TypeParameterName
struct xa_state *xas
booladvance
xa_mark_tmark
1618  addr = marks[(__forceunsigned)mark]
1619  offset = xa_offset
1621  If advance Then offset++
1623  If XA_CHUNK_SIZE == BITS_PER_LONG Then
1624  If offset < XA_CHUNK_SIZE Then
1625  data = addr & ~0UL << offset
1629  Return XA_CHUNK_SIZE
1632  Return 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.
Caller
NameDescribe
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