函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return the pagecache page at a given address within a VMA

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

返回类型:struct page

参数:

类型参数名称
struct hstate *h
struct vm_area_struct *vma
unsigned longaddress
3739  mapping等于f_mapping
3740  idx等于Convert the address within this vma to the page offset within* the mapping, in pagecache page units; huge pages here.
3742  返回:d_lock_page - locate, pin and lock a pagecache page*@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 locked and with an increased* refcount.
调用者
名称描述
hugetlb_fault