Displaying 1 result from an estimated 1 matches for "get_vmcoreinfo".
2008 Mar 31
3
[PATCH 3/4] extract vmcoreinfo from /proc/vmcore for Xen
.../crashdump.c.org 2008-03-25 11:51:51.000000000 +0900
+++ kexec/crashdump.c 2008-03-26 09:29:20.000000000 +0900
@@ -110,10 +110,8 @@
return 0;
}
-/* Returns the physical address of start of crash notes buffer for a kernel. */
-int get_kernel_vmcoreinfo(uint64_t *addr, uint64_t *len)
+static int get_vmcoreinfo(char *kdump_info, uint64_t *addr, uint64_t *len)
{
- char kdump_info[PATH_MAX];
char line[MAX_LINE];
int count;
FILE *fp;
@@ -122,9 +120,8 @@
*addr = 0;
*len = 0;
- sprintf(kdump_info, "/sys/kernel/vmcoreinfo");
if (!(fp = fopen(kdump_info, "r")))
- return 0;
+...