函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static __always_inline unsigned long __get_pfnblock_flags_mask(struct page *page, unsigned long pfn, unsigned long end_bitidx, unsigned long mask)

返回类型:unsigned long

参数:

类型参数名称
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等于bitidxBITS_PER_LONG
491  bitidx与等于BITS_PER_LONG减1
493  word等于bitmap[word_bitidx]
494  bitidx加等于end_bitidx
495  返回:word右移BITS_PER_LONGbitidx减1位按位与mask
调用者
名称描述
get_pfnblock_flags_mask
get_pfnblock_migratetype