函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\readahead.c Create Date:2022-07-27 15:35:35
Last Modify:2020-03-17 21:13:07 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:int read_cache_pages(struct address_space *mapping, struct list_head *pages, int (*filler)(void *, struct page *), void *data)

返回类型:int

参数:

类型参数名称
struct address_space *mapping
struct list_head *pages
int (*filler
void *data
92  ret等于0
94  当非链表为空循环
95  page等于lru_to_page(pages)
96  删除链表项
100  继续下一循环
102  put_page(page)
104  ret等于filler(data, page)
107  退出
109  task_io_account_read(PAGE_SIZE)
111  返回:ret