numa.h   numa.h 
skipping to change at line 179 skipping to change at line 179
is true. */ is true. */
void numa_error(char *where); void numa_error(char *where);
/* When true exit the program when a NUMA system call (except numa_availabl e) /* When true exit the program when a NUMA system call (except numa_availabl e)
fails */ fails */
extern int numa_exit_on_error; extern int numa_exit_on_error;
/* Warning function. Can also be overwritten. Default is to print on stderr /* Warning function. Can also be overwritten. Default is to print on stderr
once. */ once. */
void numa_warn(int num, char *fmt, ...); void numa_warn(int num, char *fmt, ...);
int numa_migrate_pages(int pid, const nodemask_t *from, const nodemask_t *t
o);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added


 numaif.h   numaif.h 
skipping to change at line 18 skipping to change at line 18
/* Kernel interface for NUMA API */ /* Kernel interface for NUMA API */
/* System calls */ /* System calls */
extern long get_mempolicy(int *policy, extern long get_mempolicy(int *policy,
const unsigned long *nmask, unsigned long maxnode, const unsigned long *nmask, unsigned long maxnode,
void *addr, int flags); void *addr, int flags);
extern long mbind(void *start, unsigned long len, int mode, extern long mbind(void *start, unsigned long len, int mode,
const unsigned long *nmask, unsigned long maxnode, unsigne d flags); const unsigned long *nmask, unsigned long maxnode, unsigne d flags);
extern long set_mempolicy(int mode, const unsigned long *nmask, extern long set_mempolicy(int mode, const unsigned long *nmask,
unsigned long maxnode); unsigned long maxnode);
extern long migratepages(int pid, unsigned long maxnode, unsigned long *fro
mnode,
unsigned long *tonode);
/* Policies */ /* Policies */
#define MPOL_DEFAULT 0 #define MPOL_DEFAULT 0
#define MPOL_PREFERRED 1 #define MPOL_PREFERRED 1
#define MPOL_BIND 2 #define MPOL_BIND 2
#define MPOL_INTERLEAVE 3 #define MPOL_INTERLEAVE 3
#define MPOL_MAX MPOL_INTERLEAVE #define MPOL_MAX MPOL_INTERLEAVE
/* Flags for get_mem_policy */ /* Flags for get_mem_policy */
#define MPOL_F_NODE (1<<0) /* return next il node or node of address * / #define MPOL_F_NODE (1<<0) /* return next il node or node of address * /
/* Warning: MPOL_F_NODE is unsupported and
subject to change. Don't use. */
#define MPOL_F_ADDR (1<<1) /* look up vma using address */ #define MPOL_F_ADDR (1<<1) /* look up vma using address */
/* Flags for mbind */ /* Flags for mbind */
#define MPOL_MF_STRICT (1<<0) /* Verify existing pages in the mapping */ #define MPOL_MF_STRICT (1<<0) /* Verify existing pages in the mapping */
#define MPOL_MF_MOVE (1<<1) /* Move pages owned by this process to confo
rm to mapping */
#define MPOL_MF_MOVE_ALL (1<<2) /* Move every page to conform to mapping */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif #endif
 End of changes. 3 change blocks. 
0 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/