函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vma_expandable

函数原型:static int vma_expandable(struct vm_area_struct *vma, unsigned long delta)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
unsigned longdelta
577  end等于The first byte after our end addresswithin vm_mm. delta
578  如果end小于The first byte after our end addresswithin vm_mm. 则返回:0
580  如果linked list of VM areas per task, sorted by address Our start address within vm_mm. 小于end则返回:0
582  如果get_unmapped_area(NULL, Our start address within vm_mm. , end - Our start address within vm_mm. , 0, Interpret addr exactly )按位与PAGE_MASK的反则返回:0
585  返回:1
调用者
名称描述
SYSCALL_DEFINE5Expand (or shrink) an existing mapping, potentially moving it at the* same time (controlled by the MREMAP_MAYMOVE flag and available VM space)* MREMAP_FIXED option added 5-Dec-1999 by Benjamin LaHaise* This option implies MREMAP_MAYMOVE.