函数逻辑报告 |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-27 11:01:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:swsusp_alloc - Allocate memory for hibernation image
函数原型:static int swsusp_alloc(struct memory_bitmap *copy_bm, unsigned int nr_pages, unsigned int nr_highmem)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct memory_bitmap * | copy_bm | |
unsigned int | nr_pages | |
unsigned int | nr_highmem |
1948 | 如果nr_highmem大于0则 |
1949 | 如果get_highmem_buffer(PG_ANY)则转到:err_out |
1957 | nr_pages减等于Numbers of normal and highmem page frames allocated for hibernation image* before suspending devices. |
1964 | memory_bm_set_bit(copy_bm, page_to_pfn(page)) |
1968 | 返回:0 |
1970 | err_out : |
1972 | 返回:负ENOMEM |
名称 | 描述 |
---|---|
swsusp_save |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |