Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xas_set_range

Proto:static void xas_set_range(struct xa_state *xas, unsigned long first, unsigned long last)

Type:void

Parameter:

TypeParameterName
struct xa_state *xas
unsigned longfirst
unsigned longlast
1512  shift = 0
1513  sibs = last - first
1514  offset = XA_CHUNK_MASK
1516  xas_set() - Set up XArray operation state for a different index
1518  When (first & XA_CHUNK_MASK) == 0 cycle
1519  If sibs < XA_CHUNK_MASK Then Break
1521  If sibs == XA_CHUNK_MASK && offset < XA_CHUNK_MASK Then Break
1523  shift += The xarray is constructed out of a set of 'chunks' of pointers
1524  If offset == XA_CHUNK_MASK Then offset = 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  If offset + sibs > XA_CHUNK_MASK Then sibs = XA_CHUNK_MASK - offset
1533  If ( first + sibs + 1 << shift) - 1 > last Then sibs -= 1
1536  xa_shift = shift
1537  xa_sibs = sibs
Caller
NameDescribe
xa_store_rangexa_store_range() - Store this entry at a range of indices in the XArray