1/*
2 * /proc/kcore definitions
3 */
4#ifndef _LINUX_KCORE_H
5#define _LINUX_KCORE_H
6
7enum kcore_type {
8	KCORE_TEXT,
9	KCORE_VMALLOC,
10	KCORE_RAM,
11	KCORE_VMEMMAP,
12	KCORE_OTHER,
13};
14
15struct kcore_list {
16	struct list_head list;
17	unsigned long addr;
18	size_t size;
19	int type;
20};
21
22struct vmcore {
23	struct list_head list;
24	unsigned long long paddr;
25	unsigned long long size;
26	loff_t offset;
27};
28
29#ifdef CONFIG_PROC_KCORE
30extern void kclist_add(struct kcore_list *, void *, size_t, int type);
31#else
32static inline
33void kclist_add(struct kcore_list *new, void *addr, size_t size, int type)
34{
35}
36#endif
37
38#endif /* _LINUX_KCORE_H */
39