Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\rmap.c Create Date:2022-07-28 14:57:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void hugepage_add_anon_rmap(struct page *page, struct vm_area_struct *vma, unsigned long address)

Type:void

Parameter:

TypeParameterName
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  If first Then __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
Caller
NameDescribe
remove_migration_pteRestore a potential migration pte to a working pte entry