函数逻辑报告 |
Source Code:mm\swapfile.c |
Create Date:2022-07-27 16:49:57 |
Last Modify:2020-03-17 22:19:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:read_swap_header
函数原型:static unsigned long read_swap_header(struct swap_info_struct *p, union swap_header *swap_header, struct inode *inode)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct swap_info_struct * | p | |
union swap_header * | swap_header | |
struct inode * | inode |
2947 | 如果内存比较则 |
2948 | 打印错误信息("Unable to find swap-space signature\n") |
2949 | 返回:0 |
2956 | swab32s( & nr_badpages) |
2957 | 如果nr_badpages大于Max bad pages in the new format..则返回:0 |
2963 | 如果version不等于1则 |
2969 | dex of first free in swap_map 等于1 |
2970 | likely index for next allocation 等于1 |
2971 | countdown to next cluster search 等于0 |
2975 | 如果非last_page则 |
2976 | 打印警告信息("Empty swap-file\n") |
2977 | 返回:0 |
2980 | 打印警告信息("Truncating oversized swap area, only using %luk out of %luk\n", maxpages << (PAGE_SHIFT determines the page size - 10), last_page << (PAGE_SHIFT determines the page size - 10)) |
2990 | dex of last free in swap_map 等于maxpages减1 |
2992 | 如果非maxpages则返回:0 |
2995 | 如果swapfilepages且maxpages大于swapfilepages则 |
2996 | 打印警告信息("Swap area shorter than signature indicates\n") |
2997 | 返回:0 |
2999 | 如果nr_badpages且S_ISREG(i_mode)则返回:0 |
3001 | 如果nr_badpages大于Max bad pages in the new format..则返回:0 |
3004 | 返回:maxpages |
名称 | 描述 |
---|---|
SYSCALL_DEFINE2 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |