函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:d_get_pages_range - gang pagecache lookup*@mapping: The address_space to search*@start: The starting page index*@end: The final page index (inclusive)*@nr_pages: The maximum number of pages*@pages: Where the resulting pages are placed*

函数原型:unsigned find_get_pages_range(struct address_space *mapping, unsigned long *start, unsigned long end, unsigned int nr_pages, struct page **pages)

返回类型:unsigned

参数:

类型参数名称
struct address_space *mapping
unsigned long *start
unsigned longend
unsigned intnr_pages
struct page **pages
1795  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, * start)
1797  ret等于0
1799  如果此条件成立可能性小(为编译器优化)(!nr_pages)则返回:0
1802  _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
1804  如果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则继续下一循环
1807  如果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.则继续下一循环
1810  如果非page_cache_get_speculative(page)则转到:retry
1814  如果此条件成立可能性小(为编译器优化)(page != xas_reload() - Refetch an entry from the xarray)则转到:put_page
1817  pages[ret]等于find_subpage(page, xa_index)
1818  如果ret先自加恒等于nr_pages
1819  start等于xa_index加1
1820  转到:out
1822  继续下一循环
1823  put_page :
1824  put_page(page)
1825  retry :
1826  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.
1835  如果end恒等于The type of an index into the pagecache.减1则start等于The type of an index into the pagecache.减1
1837  否则start等于end加1
1839  out :
1840  _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()
1842  返回:ret
调用者
名称描述
pagevec_lookup_rangepagevec_lookup_range - gang pagecache lookup*@pvec: Where the resulting pages are placed*@mapping: The address_space to search*@start: The starting page index*@end: The final page index* pagevec_lookup_range() will search for & return a group of up to
find_get_pages