Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xas_squash_marks() - Merge all marks to the first entry*@xas: Array operation state.* Set a mark on the first entry if any entry has it set. Clear marks on* all sibling entries.

Proto:static void xas_squash_marks(const struct xa_state *xas)

Type:void

Parameter:

TypeParameterName
const struct xa_state *xas
126  mark = 0
127  limit = xa_offset + xa_sibs + 1
129  If Not xa_sibs Then Return
132  Do
133  marks = marks[mark]
134  If 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. == limit Then Continue
136  __set_bit - Set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* Unlike set_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation* succeeds.
137  bitmap_clear(marks, xa_offset + 1, xa_sibs)
138  When mark++ != XA_MARK_MAX cycle
Caller
NameDescribe
xas_storexas_store() - Store this entry in the XArray