函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vm_end_gap

函数原型:static inline unsigned long vm_end_gap(struct vm_area_struct *vma)

返回类型:unsigned long

参数:

类型参数名称
struct vm_area_struct *vma
2470  vm_end等于The first byte after our end addresswithin vm_mm.
2472  如果Flags, see mm.h. 按位与VM_GROWSUP
2473  vm_end加等于stack_guard_gap
2474  如果vm_end小于The first byte after our end addresswithin vm_mm. vm_end等于负PAGE_SIZE
2477  返回:vm_end
调用者
名称描述
vma_compute_gap
__vma_link_rb
__vma_adjustWe cannot adjust vm_start, vm_end, vm_pgoff fields of a vma that* is already present in an i_mmap tree without adjusting the tree.* The following helper function should be used when such adjustments* are necessary
unmapped_area
unmapped_area_topdown
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):
detach_vmas_to_be_unmappedCreate a list of vma's touched by the unmap, removing them from the mm's* vma list as we go..