Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\highmem.h Create Date:2022-07-28 05:44:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_zeroed_user_highpage_movable - Allocate a zeroed HIGHMEM page for a VMA that the caller knows can move*@vma: The VMA the page is to be allocated for*@vaddr: The virtual address the page will be inserted into* This function will allocate a page for a

Proto:static inline struct page *alloc_zeroed_user_highpage_movable(struct vm_area_struct *vma, unsigned long vaddr)

Type:struct page

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longvaddr
208  Return __alloc_zeroed_user_highpage(ZONE_MOVABLE allowed , vma, vaddr)
Caller
NameDescribe
wp_page_copyHandle the case of a page which we actually need to copy to a new page.* Called with mmap_sem locked and the old page referenced, but* without the ptl held.* High level logic flow:* - Allocate a page, copy the content of the old page to the new one.
do_anonymous_pageWe enter with non-exclusive mmap_sem (to exclude vma changes,* but allow concurrent faults), and pte mapped but not yet locked.* We return with mmap_sem still held, but pte unmapped and unlocked.