Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Same as find_vma, but also return a pointer to the previous VMA in *pprev.

Proto:struct vm_area_struct *find_vma_prev(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)

Type:struct vm_area_struct

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longaddr
struct vm_area_struct **pprev
2255  vma = Look up the first VMA which satisfies addr < vm_end, NULL if none.
2256  If vma Then
2257  pprev = linked list of VM areas per task, sorted by address
2258  Else
2259  rb_node = rb_last( & mm_rb)
2261  * pprev = rb_node ? rb_entry(rb_node, structvm_area_struct, vm_rb) : NULL
2263  Return vma
Caller
NameDescribe
arch_get_unmapped_areaGet an address range which is currently unmapped.* For shmat() with addr=0.* Ugly calling convention alert:* Return value with the low bits set means error value,* ie* if (ret & ~PAGE_MASK)* error = ret;
arch_get_unmapped_area_topdownThis mmap-allocator allocates new areas top-down from below the* stack's low limit (the base):
SYSCALL_DEFINE3The madvise(2) system call
userfaultfd_unregister