maps4: add /proc/kpageflags interface
commit304daa8132a95e998b6716d4b7bd8bd76aa152b2
authorMatt Mackall <mpm@selenic.com>
Tue, 5 Feb 2008 06:29:06 +0000 (4 22:29 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:17 +0000 (5 09:44 -0800)
tree21f37f8eb40518b3300b5c0967cf3867c7f18aae
parent161f47bf41c5ece90ac53cbb6a4cb9bf74ce0ef6
maps4: add /proc/kpageflags interface

This makes a subset of physical page flags available to userspace. Together
with /proc/pid/kpagemap, this allows tracking of a wide variety of VM behaviors.

Exported flags are decoupled from the kernel's internal flags. This
allows us to reorder flag bits, and synthesize any bits that get
redefined in terms of other bits.

[akpm@linux-foundation.org: remove unneeded access_ok()]
[akpm@linux-foundation.org: s/0/NULL/]
Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_misc.c