函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__page_check_anon_rmap - sanity check anonymous rmap addition*@page: the page to add the mapping to*@vma: the vm area in which the mapping is added*@address: the user virtual address mapped

函数原型:static void __page_check_anon_rmap(struct page *page, struct vm_area_struct *vma, unsigned long address)

返回类型:void

参数:

类型参数名称
struct page *page
struct vm_area_struct *vma
unsigned longaddress
1090  VM_BUG_ON_PAGE(Root of this anon_vma tree != root, page)
1091  VM_BUG_ON_PAGE(Get the offset in PAGE_SIZE.* (TODO: hugepage should have ->index in PAGE_SIZE) != linear_page_index(vma, address), page)
调用者
名称描述
do_page_add_anon_rmapSpecial version of the above for do_swap_page, which often runs* into pages that are exclusively owned by the current process.* Everybody else should continue to use page_add_anon_rmap above.