aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/kcore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c
index 659c1635db81..e10d360110bd 100644
--- a/fs/proc/kcore.c
+++ b/fs/proc/kcore.c
@@ -372,9 +372,14 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
372 return acc; 372 return acc;
373} 373}
374 374
375static struct kcore_list kcore_vmalloc;
376
375static int __init proc_kcore_init(void) 377static int __init proc_kcore_init(void)
376{ 378{
377 proc_root_kcore = proc_create("kcore", S_IRUSR, NULL, &proc_kcore_operations); 379 proc_root_kcore = proc_create("kcore", S_IRUSR, NULL, &proc_kcore_operations);
380
381 kclist_add(&kcore_vmalloc, (void *)VMALLOC_START,
382 VMALLOC_END - VMALLOC_START, KCORE_VMALLOC);
378 return 0; 383 return 0;
379} 384}
380module_init(proc_kcore_init); 385module_init(proc_kcore_init);