函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xas_set_range

函数原型:static void xas_set_range(struct xa_state *xas, unsigned long first, unsigned long last)

返回类型:void

参数:

类型参数名称
struct xa_state *xas
unsigned longfirst
unsigned longlast
1512  shift等于0
1513  sibs等于lastfirst
1514  offset等于XA_CHUNK_MASK
1516  xas_set() - Set up XArray operation state for a different index
1518 first按位与XA_CHUNK_MASK的值恒等于0循环
1519  如果sibs小于XA_CHUNK_MASK退出
1521  如果sibs恒等于XA_CHUNK_MASKoffset小于XA_CHUNK_MASK退出
1523  shift加等于The xarray is constructed out of a set of 'chunks' of pointers
1524  如果offset恒等于XA_CHUNK_MASKoffset等于sibs按位与XA_CHUNK_MASK
1526  sibs右移等于The xarray is constructed out of a set of 'chunks' of pointers
1527  first右移等于The xarray is constructed out of a set of 'chunks' of pointers
1530  offset等于first按位与XA_CHUNK_MASK
1531  如果offsetsibs大于XA_CHUNK_MASKsibs等于XA_CHUNK_MASKoffset
1533  如果firstsibs加1左移shift位的值减1大于lastsibs减等于1
1536  xa_shift等于shift
1537  xa_sibs等于sibs
调用者
名称描述
xa_store_rangexa_store_range() - Store this entry at a range of indices in the XArray