Function report |
Source Code:kernel\power\swap.c |
Create Date:2022-07-28 10:02:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hib_submit_io
Proto:static int hib_submit_io(int op, int op_flags, unsigned long page_off, void *addr, struct hib_bio_batch *hb)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 | If bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE Then |
| 276 | pr_err("Adding page to bio failed at %llu\n", (unsignedlonglong) device address in 512 byte sectors ) |
| 279 | Return -EFAULT |
| 282 | If hb Then |
| 287 | Else |
| 288 | error = submit_bio_wait(bio) |
| 292 | Return error |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |