Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_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

Proto:static __always_inline unsigned long __get_pfnblock_flags_mask(struct page *page, unsigned long pfn, unsigned long end_bitidx, unsigned long mask)

Type:unsigned long

Parameter:

TypeParameterName
struct page *page
unsigned longpfn
unsigned longend_bitidx
unsigned longmask
488  bitmap = Return a pointer to the bitmap storing bits affecting a block of pages
489  bitidx = pfn_to_bitidx(page, pfn)
490  word_bitidx = bitidx / BITS_PER_LONG
491  bitidx &= BITS_PER_LONG - 1
493  word = bitmap[word_bitidx]
494  bitidx += end_bitidx
495  Return word >> BITS_PER_LONG - bitidx - 1 & mask
Caller
NameDescribe
get_pfnblock_flags_mask
get_pfnblock_migratetype