Function report |
Source Code:kernel\power\snapshot.c |
Create Date:2022-07-28 10:01:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_buffer - Get the address to store the next image data page.* Get the address that snapshot_write_next() should return to its caller to* write to.
Proto:static void *get_buffer(struct memory_bitmap *bm, struct chain_allocator *ca)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct memory_bitmap * | bm | |
struct chain_allocator * | ca |
2544 | If pfn == Data types related to memory bitmaps Then Return ERR_PTR( - EFAULT) |
2547 | page = pfn_to_page(pfn) |
2548 | If PageHighMem(page) Then Return get_highmem_page_buffer(page, ca) |
2551 | If swsusp_page_is_forbidden(page) && swsusp_page_is_free(page) Then Return page_address(page) |
2562 | pbe = chain_alloc(ca, size of pbe ) |
2563 | If Not pbe Then |
2568 | address of the copy = List of "safe" pages (ie. pages that were not used by the image kernel* before hibernation) that may be used as temporary storage for image kernel* memory contents. |
2569 | List of "safe" pages (ie. pages that were not used by the image kernel* before hibernation) that may be used as temporary storage for image kernel* memory contents. = next |
2572 | Return address of the copy |
Name | Describe |
---|---|
snapshot_write_next | snapshot_write_next - Get the address to store the next image page.*@handle: Snapshot handle structure to guide the writing.* On the first call, @handle should point to a zeroed snapshot_handle* structure |
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 |