Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mlock.c Create Date:2022-07-28 14:45:36
Last Modify:2022-05-23 14:12:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:munlock_vma_pages_range() - munlock all pages in the vma range.'*@vma - vma containing range to be munlock()ed.*@start - start address in @vma of the range*@end - end of range in @vma.* For mremap(), munmap() and exit().* Called with @vma VM_LOCKED.

Proto:void munlock_vma_pages_range(struct vm_area_struct *vma, unsigned long start, unsigned long end)

Type:void

Parameter:

TypeParameterName
struct vm_area_struct *vma
unsigned longstart
unsigned longend
448  Flags, see mm.h. &= This mask is used to clear all the VMA flags used by mlock
450  When start < end cycle
452  page_mask = 0
457  pagevec_init( & pvec)
465  page = follow_page(vma, start, do get_page on page | give error on hole if it would be zero )
467  If page && Not IS_ERR(page) Then
482  Else
503  page_increm = 1 + page_mask
504  start += page_increm * PAGE_SIZE
505  :
506  cond_resched()
Caller
NameDescribe
mlock_fixupmlock_fixup - handle mlock[all]/munlock[all] requests.* Filters out "special" vmas -- VM_LOCKED never gets set for these, and* munlock is a no-op. However, for some special vmas, we go ahead and* populate the ptes.
SYSCALL_DEFINE5Emulation of deprecated remap_file_pages() syscall.
munlock_vma_pages_all