函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The following two functions are for anonymous (private mapped) hugepages.* Unlike common anonymous pages, anonymous hugepages have no accounting code* and no lru code, because we handle hugepages differently from common pages.

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

返回类型:void

参数:

类型参数名称
struct page *page
struct vm_area_struct *vma
unsigned longaddress
1961  anon_vma等于Serialized by page_table_lock
1964  BUG_ON(!PageLocked(page))
1965  BUG_ON(!anon_vma)
1967  first等于atomic_inc_and_test(compound_mapcount_ptr(page))
1968  如果first__page_set_anon_rmap - set up new anonymous rmap*@page: Page or Hugepage to add to rmap*@vma: VM area to add page to.*@address: User virtual address of the mapping *@exclusive: the page is exclusively owned by the current process
调用者
名称描述
remove_migration_pteRestore a potential migration pte to a working pte entry