函数逻辑报告 |
Source Code:mm\vmalloc.c |
Create Date:2022-07-27 16:28:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Returns a start address of the newly allocated area, if success.* Otherwise a vend is returned that indicates failure.
函数原型:static __always_inline unsigned long __alloc_vmap_area(unsigned long size, unsigned long align, unsigned long vstart, unsigned long vend)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | size | |
unsigned long | align | |
unsigned long | vstart | |
unsigned long | vend |
1034 | va等于Find the first free block(lowest start address) in the tree,* that will accomplish the request corresponding to passing* parameters. |
1035 | 如果此条件成立可能性小(为编译器优化)(!va)则返回:vend |
1038 | 如果va_start大于vstart则nva_start_addr等于@a is a power of 2 value (va_start, align) |
1040 | 否则nva_start_addr等于@a is a power of 2 value (vstart, align) |
1044 | 如果nva_start_addr加size大于vend则返回:vend |
1048 | type等于classify_va_fit_type(va, nva_start_addr, size) |
1049 | 如果WARN_ON_ONCE(type == NOTHING_FIT)则返回:vend |
1053 | ret等于adjust_va_to_fit_type(va, nva_start_addr, size, type) |
1061 | 返回:nva_start_addr |
名称 | 描述 |
---|---|
alloc_vmap_area | Allocate a region of KVA of the specified size and alignment, within the* vstart and vend. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |