Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\readahead.c Create Date:2022-07-28 14:11:53
Last Modify:2020-03-17 21:13:07 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ad_cache_pages - populate an address space with some pages & start reads against them*@mapping: the address_space*@pages: The address of a list_head which contains the target pages. These* pages have their ->index populated and are otherwise uninitialised.

Proto:int read_cache_pages(struct address_space *mapping, struct list_head *pages, int (*filler)(void *, struct page *), void *data)

Type:int

Parameter:

TypeParameterName
struct address_space *mapping
struct list_head *pages
int (*filler
void *data
92  ret = 0
94  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
95  page = lru_to_page(pages)
96  deletes entry from list
100  Continue
102  put_page(page)
104  ret = filler(data, page)
107  Break
109  task_io_account_read(PAGE_SIZE)
111  Return ret