函数逻辑报告

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

函数名称:Search for an unmapped address range

函数原型:static inline unsigned long vm_unmapped_area(struct vm_unmapped_area_info *info)

返回类型:unsigned long

参数:

类型参数名称
struct vm_unmapped_area_info *info
2386  如果flags按位与VM_UNMAPPED_AREA_TOPDOWN则返回:unmapped_area_topdown(info)
2388  否则返回:unmapped_area(info)
调用者
名称描述
arch_get_unmapped_area
arch_get_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):