Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:pfn_to_bitidx

Proto:static inline int pfn_to_bitidx(struct page *page, unsigned long pfn)

Type:int

Parameter:

TypeParameterName
struct page *page
unsigned longpfn
465  pfn = pfn - und_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.( zone_start_pfn == zone_start_paddr >> PAGE_SHIFT , pageblock_nr_pages)
466  Return (pfn >> Huge pages are a constant size ) * NR_PAGEBLOCK_BITS
Caller
NameDescribe
__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