函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:unsigned int xa_extract(struct xarray *xa, void **dst, unsigned long start, unsigned long max, unsigned int n, xa_mark_t filter)

返回类型:unsigned int

参数:

类型参数名称
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  如果非n则返回:0
1967  如果filter小于XA_MAX_MARKS则返回:xas_extract_marked( & xas, dst, max, n, filter)
1969  返回:xas_extract_present( & xas, dst, max, n)