函数逻辑报告 |
Source Code:mm\page_alloc.c |
Create Date:2022-07-27 16:38:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:free_reserved_area
函数原型:unsigned long free_reserved_area(void *start, void *end, int poison, const char *s)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | start | |
void * | end | |
int | poison | |
const char * | s |
7475 | pages等于0 |
7477 | start等于 align the pointer to the (next) page boundary ((unsignedlong)start) |
7480 | page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(pos) |
7490 | direct_map_addr等于page_address(page) |
7491 | 如果poison小于等于0xFF则memset(direct_map_addr, poison, PAGE_SIZE) |
7494 | free_reserved_page(page) |
7497 | 如果pages且s则打印信息("Freeing %s memory: %ldK\n", s, pages << (PAGE_SHIFT determines the page size - 10)) |
7501 | 返回:pages |
名称 | 描述 |
---|---|
free_initrd_mem | |
free_initmem_default | Default method to free all the __init memory into the buddy system.* The freed pages will be poisoned with pattern "poison" if it's within* range [0, UCHAR_MAX].* Return pages freed into the buddy system. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |