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:xas_extract_marked

Proto:static unsigned int xas_extract_marked(struct xa_state *xas, void **dst, unsigned long max, unsigned int n, xa_mark_t mark)

Type:unsigned int

Parameter:

TypeParameterName
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  If 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 Then Continue
1922  dst[i++] = entry
1923  If i == n Then Break
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  Return i
Caller
NameDescribe
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.