函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:xas_extract_marked

函数原型:static unsigned int xas_extract_marked(struct xa_state *xas, void **dst, unsigned long max, unsigned int n, xa_mark_t mark)

返回类型:unsigned int

参数:

类型参数名称
struct xa_state *xas
void **dst
unsigned longmax
unsigned intn
xa_mark_tmark
1916  i等于0
1918  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1920  如果xas_retry() - Retry the operation if appropriate.*@xas: XArray operation state.*@entry: Entry from xarray.* The advanced functions may sometimes return an internal entry, such as* a retry entry or a zero entry. This function sets up the @xas to restart则继续下一循环
1922  dst[i++]等于entry
1923  如果i恒等于n退出
1926  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1928  返回:i
调用者
名称描述
xa_extractxa_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.