]> git.baikalelectronics.ru Git - kernel.git/commit
Mem Policy: add MPOL_F_MEMS_ALLOWED get_mempolicy() flag
authorLee Schermerhorn <Lee.Schermerhorn@hp.com>
Tue, 16 Oct 2007 08:24:51 +0000 (01:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:42:54 +0000 (09:42 -0700)
commit5f53a8ec93073359179911156b6c48e4f9047217
tree8c985bfd704a8c993d6ca992725969c6fc5c9e5a
parent65e39d08380d32598b1eacda538780c96bf7dc0d
Mem Policy: add MPOL_F_MEMS_ALLOWED get_mempolicy() flag

Allow an application to query the memories allowed by its context.

Updated numa_memory_policy.txt to mention that applications can use this to
obtain allowed memories for constructing valid policies.

TODO:  update out-of-tree libnuma wrapper[s], or maybe add a new
wrapper--e.g.,  numa_get_mems_allowed() ?

Also, update numa syscall man pages.

Tested with memtoy V>=0.13.

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Acked-by: Christoph Lameter <clameter@sgi.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/vm/numa_memory_policy.txt
include/linux/mempolicy.h
mm/mempolicy.c