函数逻辑报告 |
Source Code:mm\vmalloc.c |
Create Date:2022-07-27 16:28:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:adjust_va_to_fit_type
函数原型:static __always_inline int adjust_va_to_fit_type(struct vmap_area *va, unsigned long nva_start_addr, unsigned long size, enum fit_type type)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vmap_area * | va | |
unsigned long | nva_start_addr | |
unsigned long | size | |
enum fit_type | type |
938 | 否则如果type恒等于 left edge fit 则 |
947 | 否则如果type恒等于 right edge fit 则 |
955 | va_end等于nva_start_addr |
956 | 否则如果type恒等于NE_FIT_TYPE则 |
964 | lva等于__this_cpu_xchg(Preload a CPU with one object for "no edge" split case. The* aim is to get rid of allocations from the atomic context, thus* to use more permissive allocation masks., NULL) |
965 | 如果此条件成立可能性小(为编译器优化)(!lva)则 |
1000 | va_end等于nva_start_addr |
1005 | va_start等于nva_start_addr加size |
1006 | 否则 |
1007 | 返回:负1 |
1018 | 返回:0 |
名称 | 描述 |
---|---|
__alloc_vmap_area | Returns a start address of the newly allocated area, if success.* Otherwise a vend is returned that indicates failure. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |