Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xa_extract() - Copy selected entries from the XArray into a normal array.*@xa: The source XArray to copy from.*@dst: The buffer to copy entries into.*@start: The first index in the XArray eligible to be selected.

Proto:unsigned int xa_extract(struct xarray *xa, void **dst, unsigned long start, unsigned long max, unsigned int n, xa_mark_t filter)

Type:unsigned int

Parameter:

TypeParameterName
struct xarray *xa
void **dst
unsigned longstart
unsigned longmax
unsigned intn
xa_mark_tfilter
1962  XA_STATE() - Declare an XArray operation state.*@name: Name of this operation state (usually xas).*@array: Array to operate on.*@index: Initial index of interest.* Declare and initialise an xa_state on the stack.(xas, xa, start)
1964  If Not n Then Return 0
1967  If filter < XA_MAX_MARKS Then Return xas_extract_marked( & xas, dst, max, n, filter)
1969  Return xas_extract_present( & xas, dst, max, n)