Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6.git] / include / linux / kcore.h
blobd92762286645a90a0fd8bfad21e6860c8f30e0bd
1 /*
2 * /proc/kcore definitions
3 */
4 #ifndef _LINUX_KCORE_H
5 #define _LINUX_KCORE_H
7 enum kcore_type {
8 KCORE_TEXT,
9 KCORE_VMALLOC,
10 KCORE_RAM,
11 KCORE_VMEMMAP,
12 KCORE_OTHER,
15 struct kcore_list {
16 struct list_head list;
17 unsigned long addr;
18 size_t size;
19 int type;
22 struct vmcore {
23 struct list_head list;
24 unsigned long long paddr;
25 unsigned long long size;
26 loff_t offset;
29 #ifdef CONFIG_PROC_KCORE
30 extern void kclist_add(struct kcore_list *, void *, size_t, int type);
31 #else
32 static inline
33 void kclist_add(struct kcore_list *new, void *addr, size_t size, int type)
36 #endif
38 #endif /* _LINUX_KCORE_H */