mempolicy.c (e94b1766097d53e6f3ccfb36c8baa562ffeda3fc) | mempolicy.c (15ad7cdcfd76450d4beebc789ec646664238184d) |
---|---|
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 --- 1693 unchanged lines hidden (view full) --- 1702 mpol_rebind_policy(vma->vm_policy, new); 1703 up_write(&mm->mmap_sem); 1704} 1705 1706/* 1707 * Display pages allocated per node and memory policy via /proc. 1708 */ 1709 | 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 --- 1693 unchanged lines hidden (view full) --- 1702 mpol_rebind_policy(vma->vm_policy, new); 1703 up_write(&mm->mmap_sem); 1704} 1705 1706/* 1707 * Display pages allocated per node and memory policy via /proc. 1708 */ 1709 |
1710static const char *policy_types[] = { "default", "prefer", "bind", 1711 "interleave" }; | 1710static const char * const policy_types[] = 1711 { "default", "prefer", "bind", "interleave" }; |
1712 1713/* 1714 * Convert a mempolicy into a string. 1715 * Returns the number of characters in buffer (if positive) 1716 * or an error (negative) 1717 */ 1718static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) 1719{ --- 192 unchanged lines hidden --- | 1712 1713/* 1714 * Convert a mempolicy into a string. 1715 * Returns the number of characters in buffer (if positive) 1716 * or an error (negative) 1717 */ 1718static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) 1719{ --- 192 unchanged lines hidden --- |