函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pfn_to_bitidx

函数原型:static inline int pfn_to_bitidx(struct page *page, unsigned long pfn)

返回类型:int

参数:

类型参数名称
struct page *page
unsigned longpfn
465  pfn等于pfnund_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(内存域第一个页帧的索引, pageblock_nr_pages)
466  返回:pfn右移Huge pages are a constant size 位的值乘NR_PAGEBLOCK_BITS
调用者
名称描述
__get_pfnblock_flags_maskget_pfnblock_flags_mask - Return the requested group of flags for the pageblock_nr_pages block of pages*@page: The page within the block of interest*@pfn: The target page frame number*@end_bitidx: The last bit of interest to retrieve*@mask: mask of bits
set_pfnblock_flags_maskset_pfnblock_flags_mask - Set the requested group of flags for a pageblock_nr_pages block of pages*@page: The page within the block of interest*@flags: The flags to set*@pfn: The target page frame number*@end_bitidx: The last bit of interest*@mask: mask