函数逻辑报告 |
Source Code:kernel\power\swap.c |
Create Date:2022-07-27 11:02:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:hib_submit_io
函数原型:static int hib_submit_io(int op, int op_flags, unsigned long page_off, void *addr, struct hib_bio_batch *hb)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | op | |
int | op_flags | |
unsigned long | page_off | |
void * | addr | |
struct hib_bio_batch * | hb |
266 | page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(addr) |
268 | error等于0 |
270 | bio等于bio_alloc(GFP_NOIO | __GFP_HIGH, 1) |
271 | device address in 512 byte sectors 等于page_off乘PAGE_SIZE右移9位的值 |
272 | bio_set_dev(bio, hib_resume_bdev) |
275 | 如果bio_add_page(bio, page, PAGE_SIZE, 0)小于PAGE_SIZE则 |
276 | 打印错误信息("Adding page to bio failed at %llu\n", (unsignedlonglong) device address in 512 byte sectors ) |
279 | 返回:负EFAULT |
282 | 如果hb则 |
287 | 否则 |
292 | 返回:error |
名称 | 描述 |
---|---|
mark_swapfiles | Saving part |
write_page | write_page - Write one page to given swap location.*@buf: Address we're writing.*@offset: Offset of the swap page we're writing to.*@hb: bio completion batch |
get_swap_reader | |
swap_read_page | |
swsusp_check | swsusp_check - Check for swsusp signature in the resume device |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |