函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-27 16:17:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Same as find_vma, but also return a pointer to the previous VMA in *pprev.

函数原型:struct vm_area_struct *find_vma_prev(struct mm_struct *mm, unsigned long addr, struct vm_area_struct **pprev)

返回类型:struct vm_area_struct

参数:

类型参数名称
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  如果vma
2257  pprev等于linked list of VM areas per task, sorted by address
2258  否则
2259  rb_node等于rb_last( & mm_rb)
2261  * pprev = rb_node ? rb_entry(rb_node, structvm_area_struct, vm_rb) : NULL
2263  返回:vma
调用者
名称描述
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
userfaultfd_register