函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pagemap.h Create Date:2022-07-27 06:45:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE)

函数原型:static inline unsigned long page_to_pgoff(struct page *page)

返回类型:unsigned long

参数:

类型参数名称
struct page *page
425  如果此条件成立可能性小(为编译器优化)(PageHeadHuge() only returns true for hugetlbfs head page, but not for* normal or transparent huge pages.)则返回: Our offset within mapping. 左移compound_order(page)位
428  返回:Get index of the page with in radix-tree* (TODO: remove once hugetlb pages will have ->index in PAGE_SIZE)
调用者
名称描述
find_lock_entryd_lock_entry - locate, pin and lock a page cache entry*@mapping: the address_space to search*@offset: the page cache index* Looks up the page cache slot at @mapping & @offset. If there is a* page cache page, it is returned locked and with an increased
filemap_faultlemap_fault - read in file data for page fault handling*@vmf: struct vm_fault containing details of the fault* filemap_fault() is invoked via the vma operations vector for a* mapped memory region to read in file data during a page fault
__dump_page
__page_check_anon_rmap__page_check_anon_rmap - sanity check anonymous rmap addition*@page: the page to add the mapping to*@vma: the vm area in which the mapping is added*@address: the user virtual address mapped
rmap_walk_anonmap_walk_anon - do something to anonymous page using the object-based* rmap method*@page: the page to be handled*@rwc: control variable according to each walk type* Find all the mappings of a page using the mapping pointer and the vma chains
rmap_walk_filemap_walk_file - do something to file page using the object-based rmap method*@page: the page to be handled*@rwc: control variable according to each walk type* Find all the mappings of a page using the mapping pointer and the vma chains
collect_procs_anonCollect processes when the error hit an anonymous page.
collect_procs_fileCollect processes when the error hit a file mapped page.
__vma_addressAt what user virtual address is page expected in @vma?