From: Lee Schermerhorn Date: Tue, 16 Oct 2007 08:24:51 +0000 (-0700) Subject: Mem Policy: add MPOL_F_MEMS_ALLOWED get_mempolicy() flag X-Git-Tag: v2.6.24-rc1~1212 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754af6f5a85fcd1ecb456851d20c65e4c6ce10ab;p=pandora-kernel.git 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 Acked-by: Christoph Lameter Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed