函数逻辑报告 |
Source Code:mm\memblock.c |
Create Date:2022-07-27 16:40:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:memblock_alloc_internal - allocate boot memory block*@size: size of memory block to be allocated in bytes*@align: alignment of the region and block's size*@min_addr: the lower bound of the memory region to allocate (phys address)*@max_addr: the upper
函数原型:static void *__init memblock_alloc_internal(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr, phys_addr_t max_addr, int nid, bool exact_nid)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
phys_addr_t | size | |
phys_addr_t | align | |
phys_addr_t | min_addr | |
phys_addr_t | max_addr | |
int | nid | |
bool | exact_nid |
1466 | 如果WARN_ON_ONCE(slab_is_available())则返回:根据内存节点分配内存 |
1469 | 如果max_addr大于current_limit则max_addr等于current_limit |
1480 | 如果非alloc则返回:NULL |
名称 | 描述 |
---|---|
memblock_alloc_exact_nid_raw | memblock_alloc_exact_nid_raw - allocate boot memory block on the exact node* without zeroing memory*@size: size of memory block to be allocated in bytes*@align: alignment of the region and block's size*@min_addr: the lower bound of the memory region from |
memblock_alloc_try_nid_raw | memblock_alloc_try_nid_raw - allocate boot memory block without zeroing* memory and without panicking*@size: size of memory block to be allocated in bytes*@align: alignment of the region and block's size*@min_addr: the lower bound of the memory region |
memblock_alloc_try_nid | memblock_alloc_try_nid - allocate boot memory block*@size: size of memory block to be allocated in bytes*@align: alignment of the region and block's size*@min_addr: the lower bound of the memory region from where the allocation* is preferred (phys |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |