函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static bool hugetlbfs_pagecache_present(struct hstate *h, struct vm_area_struct *vma, unsigned long address)

返回类型:bool

参数:

类型参数名称
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  如果pagePerform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
3762  返回:page != NULL
调用者
名称描述
follow_hugetlb_page