Function report |
Source Code:arch\x86\kernel\crash_dump_32.c |
Create Date:2022-07-28 08:37:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:py_oldmem_page - copy one page from "oldmem"*@pfn: page frame number to be copied*@buf: target memory address for the copy; this can be in kernel address* space or user address space (see @userbuf)*@csize: number of bytes to copy*@offset: offset in bytes
Proto:ssize_t copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | pfn | |
char * | buf | |
size_t | csize | |
unsigned long | offset | |
int | userbuf |
56 | If Not csize Then Return 0 |
59 | If Not is_crashed_pfn_valid(pfn) Then Return -EFAULT |
62 | vaddr = kmap_atomic_pfn(pfn) |
64 | If Not userbuf Then |
67 | Else |
68 | If Not kdump_buf_page Then |
69 | printk(warning conditions "Kdump: Kdump buffer page not allocated\n") |
71 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(vaddr) |
72 | Return -EFAULT |
74 | copy_page(kdump_buf_page, vaddr) |
75 | Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(vaddr) |
76 | If copy_to_user(buf, (kdump_buf_page + offset), csize) Then Return -EFAULT |
80 | Return csize |
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 |