Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:xas_extract_present

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

Type:unsigned int

Parameter:

TypeParameterName
struct xa_state *xas
void **dst
unsigned longmax
unsigned intn
1897  i = 0
1899  _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
1901  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
1903  dst[i++] = entry
1904  If i == n Then Break
1907  _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()
1909  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.