1 /* SPDX-License-Identifier: GPL-2.0 */
3 * /proc/kcore definitions
19 struct list_head list;
27 struct list_head list;
28 unsigned long long paddr;
29 unsigned long long size;
33 struct vmcoredd_node {
34 struct list_head list; /* List of dumps */
35 void *buf; /* Buffer containing device's dump */
36 unsigned int size; /* Size of the buffer */
39 #ifdef CONFIG_PROC_KCORE
40 void __init kclist_add(struct kcore_list *, void *, size_t, int type);
42 void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
44 m->vaddr = (unsigned long)vaddr;
45 kclist_add(m, addr, sz, KCORE_REMAP);
49 void kclist_add(struct kcore_list *new, void *addr, size_t size, int type)
54 void kclist_add_remap(struct kcore_list *m, void *addr, void *vaddr, size_t sz)
59 #endif /* _LINUX_KCORE_H */