函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__basepage_index

函数原型:unsigned long __basepage_index(struct page *page)

返回类型:unsigned long

参数:

类型参数名称
struct page *page
1321  page_head等于compound_head(page)
1322  index等于Return the pagecache index of the passed page. Regular pagecache pages* use ->index whereas swapcache pages use swp_offset(->private)
1325  如果非PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details.则返回:Return the pagecache index of the passed page. Regular pagecache pages* use ->index whereas swapcache pages use swp_offset(->private)
1328  如果compound_order(page_head)大于等于Free memory management - zoned buddy allocator. compound_idx等于page_to_pfn(page)减page_to_pfn(page_head)
1330  否则compound_idx等于pagepage_head
1333  返回:index左移compound_order(page_head)位的值加compound_idx
调用者
名称描述
basepage_indexReturn page->index in PAGE_SIZE units