Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pagemap.h Create Date:2022-07-28 05:45:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE)

Proto:static inline unsigned long page_to_pgoff(struct page *page)

Type:unsigned long

Parameter:

TypeParameterName
struct page *page
425  If Value for the false possibility is greater at compile time(PageHeadHuge() only returns true for hugetlbfs head page, but not for* normal or transparent huge pages.) Then Return Our offset within mapping. << compound_order(page)
428  Return Get index of the page with in radix-tree* (TODO: remove once hugetlb pages will have ->index in PAGE_SIZE)
Caller
NameDescribe
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.