函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void xas_squash_marks(const struct xa_state *xas)

返回类型:void

参数:

类型参数名称
const struct xa_state *xas
126  mark等于0
127  limit等于xa_offsetxa_sibs加1
129  如果非xa_sibs则返回
132  循环
133  marks等于marks[mark]
134  如果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则继续下一循环
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 mark自加不等于XA_MARK_MAX循环
调用者
名称描述
xas_storexas_store() - Store this entry in the XArray