diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2009-09-22 19:45:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:41 -0400 |
commit | c30bb2a25fcfde6157e6154a32c14686fb0bedbe (patch) | |
tree | afa4811d46e5f9035a035b2c8c864bbb6c5af049 /fs/proc | |
parent | 2ef43ec772551e975a6ea7cf22b59c84955aadf9 (diff) |
kcore: add kclist types
Presently, kclist_add() only eats start address and size as its arguments.
Considering to make kclist dynamically reconfigulable, it's necessary to
know which kclists are for System RAM and which are not.
This patch add kclist types as
KCORE_RAM
KCORE_VMALLOC
KCORE_TEXT
KCORE_OTHER
This "type" is used in a patch following this for detecting KCORE_RAM.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/kcore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index f9327e51ce99..659c1635db81 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c | |||
@@ -62,10 +62,11 @@ static LIST_HEAD(kclist_head); | |||
62 | static DEFINE_RWLOCK(kclist_lock); | 62 | static DEFINE_RWLOCK(kclist_lock); |
63 | 63 | ||
64 | void | 64 | void |
65 | kclist_add(struct kcore_list *new, void *addr, size_t size) | 65 | kclist_add(struct kcore_list *new, void *addr, size_t size, int type) |
66 | { | 66 | { |
67 | new->addr = (unsigned long)addr; | 67 | new->addr = (unsigned long)addr; |
68 | new->size = size; | 68 | new->size = size; |
69 | new->type = type; | ||
69 | 70 | ||
70 | write_lock(&kclist_lock); | 71 | write_lock(&kclist_lock); |
71 | list_add_tail(&new->list, &kclist_head); | 72 | list_add_tail(&new->list, &kclist_head); |