Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\migrate.c Create Date:2022-07-28 15:58:35
Last Modify:2022-05-20 09:53:13 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_huge_page

Proto:static void copy_huge_page(struct page *dst, struct page *src)

Type:void

Parameter:

TypeParameterName
struct page *dst
struct page *src
570  If PageHuge() only returns true for hugetlbfs pages, but not for normal or* transparent huge pages. See the PageTransHuge() documentation for more* details. Then
572  h = page_hstate(src)
573  nr_pages = pages_per_huge_page(h)
577  Return
579  Else
581  BUG_ON(!PageHuge() only returns true for hugetlbfs pages, but not for* normal or transparent huge pages.* PageTransHuge() returns true for both transparent huge and* hugetlbfs pages, but not normal pages. PageTransHuge() can only be)
582  nr_pages = hpage_nr_pages(src)
585  When i < nr_pages cycle
586  cond_resched()
587  copy_highpage(dst + i, src + i)
Caller
NameDescribe
migrate_page_copy