函数逻辑报告 |
Source Code:arch\x86\kernel\crash_dump_32.c |
Create Date:2022-07-27 09:37:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:ssize_t copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | pfn | |
char * | buf | |
size_t | csize | |
unsigned long | offset | |
int | userbuf |
56 | 如果非csize则返回:0 |
59 | 如果非is_crashed_pfn_valid(pfn)则返回:负EFAULT |
62 | vaddr等于kmap_atomic_pfn(pfn) |
64 | 如果非userbuf则 |
67 | 否则 |
68 | 如果非kdump_buf_page则 |
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 | 返回:负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 | 如果copy_to_user(buf, (kdump_buf_page + offset), csize)则返回:负EFAULT |
80 | 返回:csize |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |