]> git.baikalelectronics.ru Git - kernel.git/commit
maps4: add /proc/kpageflags interface
authorMatt Mackall <mpm@selenic.com>
Tue, 5 Feb 2008 06:29:06 +0000 (22:29 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:17 +0000 (09:44 -0800)
commite9d3bbf7013415c9feed599eeadadb6958a3db3c
tree21f37f8eb40518b3300b5c0967cf3867c7f18aae
parent13a5ecd9bdf9b614ee9d83c11e0a435f7c5ebd9f
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