numa.h   numa.h 
skipping to change at line 164 skipping to change at line 164
/* Set with all cpus. */ /* Set with all cpus. */
extern struct bitmask *numa_all_cpus_ptr; extern struct bitmask *numa_all_cpus_ptr;
/* Set with no nodes */ /* Set with no nodes */
extern struct bitmask *numa_no_nodes_ptr; extern struct bitmask *numa_no_nodes_ptr;
/* Source compatibility */ /* Source compatibility */
extern nodemask_t numa_no_nodes; extern nodemask_t numa_no_nodes;
extern char *nodes_allowed_list;
/* Only run and allocate memory from a specific set of nodes. */ /* Only run and allocate memory from a specific set of nodes. */
void numa_bind(struct bitmask *nodes); void numa_bind(struct bitmask *nodes);
/* Set the NUMA node interleaving mask. 0 to turn off interleaving */ /* Set the NUMA node interleaving mask. 0 to turn off interleaving */
void numa_set_interleave_mask(struct bitmask *nodemask); void numa_set_interleave_mask(struct bitmask *nodemask);
/* Return the current interleaving mask */ /* Return the current interleaving mask */
struct bitmask *numa_get_interleave_mask(void); struct bitmask *numa_get_interleave_mask(void);
/* allocate a bitmask big enough for all nodes */ /* allocate a bitmask big enough for all nodes */
struct bitmask *numa_allocate_nodemask(void); struct bitmask *numa_allocate_nodemask(void);
static inline void numa_free_nodemask(struct bitmask *b) static inline void numa_free_nodemask(struct bitmask *b)
{ {
numa_bitmask_free(b); numa_bitmask_free(b);
} }
/* Some node to preferably allocate memory from for thread. */ /* Some node to preferably allocate memory from for task. */
void numa_set_preferred(int node); void numa_set_preferred(int node);
/* Set local memory allocation policy for thread */ /* Set local memory allocation policy for task */
void numa_set_localalloc(void); void numa_set_localalloc(void);
/* Only allocate memory from the nodes set in mask. 0 to turn off */ /* Only allocate memory from the nodes set in mask. 0 to turn off */
void numa_set_membind(struct bitmask *nodemask); void numa_set_membind(struct bitmask *nodemask);
/* Return current membind */ /* Return current membind */
struct bitmask *numa_get_membind(void); struct bitmask *numa_get_membind(void);
/* Return allowed memories [nodes] */ /* Return allowed memories [nodes] */
struct bitmask *numa_get_mems_allowed(void); struct bitmask *numa_get_mems_allowed(void);
skipping to change at line 234 skipping to change at line 232
/* Allocate memory on a mask of nodes. */ /* Allocate memory on a mask of nodes. */
void numa_tonodemask_memory(void *mem, size_t size, struct bitmask *mask); void numa_tonodemask_memory(void *mem, size_t size, struct bitmask *mask);
/* Allocate a memory area on the current node. */ /* Allocate a memory area on the current node. */
void numa_setlocal_memory(void *start, size_t size); void numa_setlocal_memory(void *start, size_t size);
/* Allocate memory area with current memory policy */ /* Allocate memory area with current memory policy */
void numa_police_memory(void *start, size_t size); void numa_police_memory(void *start, size_t size);
/* Run current thread only on nodes in mask */ /* Run current task only on nodes in mask */
int numa_run_on_node_mask(struct bitmask *mask); int numa_run_on_node_mask(struct bitmask *mask);
/* Run current thread only on node */ /* Run current task only on node */
int numa_run_on_node(int node); int numa_run_on_node(int node);
/* Return current mask of nodes the thread can run on */ /* Return current mask of nodes the task can run on */
struct bitmask * numa_get_run_node_mask(void); struct bitmask * numa_get_run_node_mask(void);
/* When strict fail allocation when memory cannot be allocated in target no de(s). */ /* When strict fail allocation when memory cannot be allocated in target no de(s). */
void numa_set_bind_policy(int strict); void numa_set_bind_policy(int strict);
/* Fail when existing memory has incompatible policy */ /* Fail when existing memory has incompatible policy */
void numa_set_strict(int flag); void numa_set_strict(int flag);
/* maximum nodes (size of kernel nodemask_t) */ /* maximum nodes (size of kernel nodemask_t) */
int numa_num_possible_nodes(); int numa_num_possible_nodes();
 End of changes. 6 change blocks. 
7 lines changed or deleted 5 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/