函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\pagemap.h Create Date:2022-07-27 06:45:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Get index of the page with in radix-tree* (TODO: remove once hugetlb pages will have ->index in PAGE_SIZE)

函数原型:static inline unsigned long page_to_index(struct page *page)

返回类型:unsigned long

参数:

类型参数名称
struct page *page
407  如果此条件成立可能性大(为编译器优化)(!PageTransTail returns true for both transparent huge pages* and hugetlbfs pages, so it should only be called when it's known* that hugetlbfs pages aren't involved.)则返回: Our offset within mapping.
414  pgoff等于 Our offset within mapping.
415  pgoff加等于pagecompound_head(page)
416  返回:pgoff
调用者
名称描述
truncate_inode_pages_rangeruncate_inode_pages_range - truncate range of pages specified by start & end byte offsets*@mapping: mapping to truncate*@lstart: offset from which to truncate*@lend: offset to which to truncate (inclusive)* Truncate the page cache, removing the pages that
invalidate_mapping_pagesvalidate_mapping_pages - Invalidate all the unlocked pages of one inode*@mapping: the address_space which holds the pages to invalidate*@start: the offset 'from' which to invalidate*@end: the offset 'to' which to invalidate (inclusive)* This function only
invalidate_inode_pages2_rangevalidate_inode_pages2_range - remove range of pages from an address_space*@mapping: the address_space*@start: the page offset 'from' which to invalidate*@end: the page offset 'to' which to invalidate (inclusive)* Any pages which are found to be mapped
page_to_pgoffGet the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE)