diff options
author | Magnus Damm <magnus@valinux.co.jp> | 2006-11-22 00:02:24 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-11-27 12:25:13 +0900 |
commit | 93d54f803f26c20172a21d57bfdb74c3ed9bdef0 (patch) | |
tree | 865023d6c18098afd660bf92a5af3ead3e13ad0b /kexec/kexec.h | |
parent | 8f9f43cee0efcfeecaae494740a6f31a8895f513 (diff) |
kexec-tools: Introduce kexec-iomem.c and /proc/iomem parsing code V2
kexec-tools: Introduce kexec-iomem.c and /proc/iomem parsing code V2
This patch adds the new file kexec-iomem.c that implements code to parse
/proc/iomem line-by-line. The following patches make use of this code
- especially the Xen-code that use /proc/iomem to get crash note information.
This version renames a function to parse_iomem_single() as suggested by Vivek.
We also now export kexec_iomem_for_each_line() in a header file.
Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
Removed trailing whitespace
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.h')
-rw-r--r-- | kexec/kexec.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kexec/kexec.h b/kexec/kexec.h index 890dbb0..8fd3edb 100644 --- a/kexec/kexec.h +++ b/kexec/kexec.h @@ -201,6 +201,16 @@ int arch_compat_trampoline(struct kexec_info *info); void arch_update_purgatory(struct kexec_info *info); int is_crashkernel_mem_reserved(void); +int kexec_iomem_for_each_line(char *match, + int (*callback)(void *data, + int nr, + char *str, + unsigned long base, + unsigned long length), + void *data); +int parse_iomem_single(char *str, uint64_t *start, uint64_t *end); + + #define MAX_LINE 160 #ifdef DEBUG |