函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xas_create_range() - Ensure that stores to this range will succeed*@xas: XArray operation state.* Creates all of the slots in the range covered by @xas. Sets @xas to* create single-index entries and positions it at the beginning of the* range

函数原型:void xas_create_range(struct xa_state *xas)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
702  index等于xa_index
703  shift等于xa_shift
704  sibs等于xa_sibs
706  xa_index或等于sibs加1左移shift位的值减1
707  如果xas_is_node() - Does the xas point to a node?*@xas: XArray operation state.* Return: %true if the xas currently references a node.Bits remaining in each slot 恒等于xa_shiftxa_offset或等于sibs
709  xa_shift等于0
710  xa_sibs等于0
712  循环
713  xas_create() - Create a slot to store an entry in.*@xas: XArray operation state.*@allow_root: %true if we can store the entry in the root directly* Most users will not need to call this function directly, as it is called* by xas_store()
714  如果xas_error() - Return an errno stored in the xa_state.*@xas: XArray operation state.* Return: 0 if no error has been noted. A negative errno if one has.则转到:restore
716  如果xa_index小于等于index按位或XA_CHUNK_MASK的值则转到:success
718  xa_index减等于XA_CHUNK_SIZE
720  循环
721  node等于xa_node
722  xa_node等于Private
724  如果Slot offset in parent 不等于0则退出
729  restore :
730  xa_shift等于shift
731  xa_sibs等于sibs
732  xa_index等于index
733  返回
734  success :
735  xa_index等于index
736  如果xa_nodexas_set_offset(xas)
调用者
名称描述
xa_store_many_order
check_create_range_3
check_create_range_4
add_to_swap_cacheadd_to_swap_cache resembles add_to_page_cache_locked on swapper_space,* but sets SwapCache flag and private instead of mapping and index.