Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\filemap.c Create Date:2022-07-28 14:02:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:d_get_pages_range_tag - find and return pages in given range matching @tag*@mapping: the address_space to search*@index: the starting page index*@end: The final page index (inclusive)*@tag: the tag index*@nr_pages: the maximum number of pages*@pages:

Proto:unsigned find_get_pages_range_tag(struct address_space *mapping, unsigned long *index, unsigned long end, xa_mark_t tag, unsigned int nr_pages, struct page **pages)

Type:unsigned

Parameter:

TypeParameterName
struct address_space *mapping
unsigned long *index
unsigned longend
xa_mark_ttag
unsigned intnr_pages
struct page **pages
1917  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, & i_pages, * index)
1919  ret = 0
1921  If Value for the false possibility is greater at compile time(!nr_pages) Then Return 0
1924  _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
1926  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
1933  If xa_is_value() - Determine if an entry is a value.*@entry: XArray entry.* Context: Any context.* Return: True if the entry is a value, false if it is a pointer. Then Continue
1936  If Not page_cache_get_speculative(page) Then Go to retry
1940  If Value for the false possibility is greater at compile time(page != xas_reload() - Refetch an entry from the xarray) Then Go to put_page
1943  pages[ret] = find_subpage(page, xa_index)
1944  If ++ret == nr_pages Then
1945  index = xa_index + 1
1946  Go to out
1948  Continue
1949  put_page :
1950  put_page(page)
1951  retry :
1952  xas_reset() - Reset an XArray operation state.*@xas: XArray operation state.* Resets the error or walk state of the @xas so future walks of the* array will start from the root. Use this if you have dropped the* xarray lock and want to reuse the xa_state.
1961  If end == The type of an index into the pagecache - 1 Then index = The type of an index into the pagecache - 1
1963  Else index = end + 1
1965  out :
1966  _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()
1968  Return ret
Caller
NameDescribe
pagevec_lookup_range_tag
pagevec_lookup_range_nr_tag
find_get_pages_tag