mempolicy.c (818099574b04c5301eacbbcd441022b353a65466) mempolicy.c (9e763e0f4f94d5f9ac8928867a4399ec3b3c7e33)
1/*
2 * Simple NUMA memory policy for the Linux kernel.
3 *
4 * Copyright 2003,2004 Andi Kleen, SuSE Labs.
5 * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc.
6 * Subject to the GNU Public License, version 2.
7 *
8 * NUMA policy allows the user to give hints in which node(s) memory should

--- 2803 unchanged lines hidden (view full) ---

2812 * Currently, the only defined flags are mutually exclusive
2813 */
2814 if (flags & MPOL_F_STATIC_NODES)
2815 p += snprintf(p, buffer + maxlen - p, "static");
2816 else if (flags & MPOL_F_RELATIVE_NODES)
2817 p += snprintf(p, buffer + maxlen - p, "relative");
2818 }
2819
1/*
2 * Simple NUMA memory policy for the Linux kernel.
3 *
4 * Copyright 2003,2004 Andi Kleen, SuSE Labs.
5 * (C) Copyright 2005 Christoph Lameter, Silicon Graphics, Inc.
6 * Subject to the GNU Public License, version 2.
7 *
8 * NUMA policy allows the user to give hints in which node(s) memory should

--- 2803 unchanged lines hidden (view full) ---

2812 * Currently, the only defined flags are mutually exclusive
2813 */
2814 if (flags & MPOL_F_STATIC_NODES)
2815 p += snprintf(p, buffer + maxlen - p, "static");
2816 else if (flags & MPOL_F_RELATIVE_NODES)
2817 p += snprintf(p, buffer + maxlen - p, "relative");
2818 }
2819
2820 if (!nodes_empty(nodes)) {
2821 p += snprintf(p, buffer + maxlen - p, ":");
2822 p += nodelist_scnprintf(p, buffer + maxlen - p, nodes);
2823 }
2820 if (!nodes_empty(nodes))
2821 p += scnprintf(p, buffer + maxlen - p, ":%*pbl",
2822 nodemask_pr_args(&nodes));
2824}
2823}