Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_user_huge_page

Proto:void copy_user_huge_page(struct page *dst, struct page *src, unsigned long addr_hint, struct vm_area_struct *vma, unsigned int pages_per_huge_page)

Type:void

Parameter:

TypeParameterName
struct page *dst
struct page *src
unsigned longaddr_hint
struct vm_area_struct *vma
unsigned intpages_per_huge_page
4746  addr = addr_hint & ~((pages_per_huge_page << PAGE_SHIFT determines the page size ) - 1)
4748  struct copy_subpage_arg arg = {dst = dst, src = src, vma = vma, }
4754  If Value for the false possibility is greater at compile time(pages_per_huge_page > MAX_ORDER_NR_PAGES) Then
4755  copy_user_gigantic_page(dst, src, addr, vma, pages_per_huge_page)
4757  Return
4760  Process all subpages of the specified huge page with the specified* operation. The target subpage will be processed last to keep its* cache lines hot.
Caller
NameDescribe
hugetlb_cowHugetlb_cow() should be called with page lock of the original hugepage held.* Called with hugetlb_instantiation_mutex held and pte_page locked so we* cannot race with other handlers or page migration.
do_huge_pmd_wp_page