函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__page_cache_alloc

函数原型:struct page *__page_cache_alloc(gfp_t gfp)

返回类型:struct page

参数:

类型参数名称
gfp_tgfp
971  如果cpuset_do_page_mem_spread()则
973  循环
975  n等于cpuset_mem_spread_node()
977  当非pageread_mems_allowed_retry(cpuset_mems_cookie)循环
979  返回:page
981  返回:alloc_pages(gfp, 0)
调用者
名称描述
pagecache_get_pagepagecache_get_page - find and get a page reference*@mapping: the address_space to search*@offset: the page index*@fgp_flags: PCG flags*@gfp_mask: gfp mask to use for the page cache data page allocation* Looks up the page cache slot at @mapping & @offset.
do_read_cache_page
__do_page_cache_readahead__do_page_cache_readahead() actually reads a chunk of disk. It allocates* the pages first, then submits them for I/O. This avoids the very bad* behaviour which would occur if page allocations are causing VM writeback.
page_cache_alloc