Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\hugetlb.c Create Date:2022-07-28 15:28:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Return whether there is a pagecache page to back given address within VMA.* Caller follow_hugetlb_page() holds page_table_lock so we cannot lock_page.

Proto:static bool hugetlbfs_pagecache_present(struct hstate *h, struct vm_area_struct *vma, unsigned long address)

Type:bool

Parameter:

TypeParameterName
struct hstate *h
struct vm_area_struct *vma
unsigned longaddress
3756  mapping = f_mapping
3757  idx = Convert the address within this vma to the page offset within* the mapping, in pagecache page units; huge pages here.
3759  page = d_get_page - find and get a page reference*@mapping: the address_space to search*@offset: the page index* Looks up the page cache slot at @mapping & @offset. If there is a* page cache page, it is returned with an increased refcount.
3760  If page Then Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
3762  Return page != NULL
Caller
NameDescribe
follow_hugetlb_page