libfoedus-core
FOEDUS Core Library
numa.h File Reference
#include <stddef.h>
#include <string.h>
#include <sys/types.h>
#include <stdlib.h>
Include dependency graph for numa.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nodemask_t
 
struct  bitmask
 

Macros

#define LIBNUMA_API_VERSION   2
 
#define NUMA_NUM_NODES   2048
 

Functions

int numa_bitmask_isbitset (const struct bitmask *, unsigned int)
 
struct bitmasknuma_bitmask_setall (struct bitmask *)
 
struct bitmasknuma_bitmask_clearall (struct bitmask *)
 
struct bitmasknuma_bitmask_setbit (struct bitmask *, unsigned int)
 
struct bitmasknuma_bitmask_clearbit (struct bitmask *, unsigned int)
 
unsigned int numa_bitmask_nbytes (struct bitmask *)
 
unsigned int numa_bitmask_weight (const struct bitmask *)
 
struct bitmasknuma_bitmask_alloc (unsigned int)
 
void numa_bitmask_free (struct bitmask *)
 
int numa_bitmask_equal (const struct bitmask *, const struct bitmask *)
 
void copy_nodemask_to_bitmask (nodemask_t *, struct bitmask *)
 
void copy_bitmask_to_nodemask (struct bitmask *, nodemask_t *)
 
void copy_bitmask_to_bitmask (struct bitmask *, struct bitmask *)
 
static void nodemask_zero (nodemask_t *mask)
 
static void nodemask_zero_compat (nodemask_t *mask)
 
static void nodemask_set_compat (nodemask_t *mask, int node)
 
static void nodemask_clr_compat (nodemask_t *mask, int node)
 
static int nodemask_isset_compat (const nodemask_t *mask, int node)
 
static int nodemask_equal (const nodemask_t *a, const nodemask_t *b)
 
static int nodemask_equal_compat (const nodemask_t *a, const nodemask_t *b)
 
int numa_available (void)
 
int numa_max_node (void)
 
int numa_max_possible_node (void)
 
int numa_preferred (void)
 
long long numa_node_size64 (int node, long long *freep)
 
long numa_node_size (int node, long *freep)
 
int numa_pagesize (void)
 
void numa_bind (struct bitmask *nodes)
 
void numa_set_interleave_mask (struct bitmask *nodemask)
 
struct bitmasknuma_get_interleave_mask (void)
 
struct bitmasknuma_allocate_nodemask (void)
 
static void numa_free_nodemask (struct bitmask *b)
 
void numa_set_preferred (int node)
 
void numa_set_localalloc (void)
 
void numa_set_membind (struct bitmask *nodemask)
 
struct bitmasknuma_get_membind (void)
 
struct bitmasknuma_get_mems_allowed (void)
 
int numa_get_interleave_node (void)
 
void * numa_alloc_interleaved_subset (size_t size, struct bitmask *nodemask)
 
void * numa_alloc_interleaved (size_t size)
 
void * numa_alloc_onnode (size_t size, int node)
 
void * numa_alloc_local (size_t size)
 
void * numa_alloc (size_t size)
 
void * numa_realloc (void *old_addr, size_t old_size, size_t new_size)
 
void numa_free (void *mem, size_t size)
 
void numa_interleave_memory (void *mem, size_t size, struct bitmask *mask)
 
void numa_tonode_memory (void *start, size_t size, int node)
 
void numa_tonodemask_memory (void *mem, size_t size, struct bitmask *mask)
 
void numa_setlocal_memory (void *start, size_t size)
 
void numa_police_memory (void *start, size_t size)
 
int numa_run_on_node_mask (struct bitmask *mask)
 
int numa_run_on_node_mask_all (struct bitmask *mask)
 
int numa_run_on_node (int node)
 
struct bitmasknuma_get_run_node_mask (void)
 
void numa_set_bind_policy (int strict)
 
void numa_set_strict (int flag)
 
int numa_num_possible_nodes ()
 
int numa_num_possible_cpus ()
 
int numa_num_configured_nodes ()
 
int numa_num_configured_cpus ()
 
int numa_num_task_cpus ()
 
int numa_num_thread_cpus ()
 
int numa_num_task_nodes ()
 
int numa_num_thread_nodes ()
 
struct bitmasknuma_allocate_cpumask ()
 
static void numa_free_cpumask (struct bitmask *b)
 
int numa_node_to_cpus (int, struct bitmask *)
 
int numa_node_of_cpu (int cpu)
 
int numa_distance (int node1, int node2)
 
void numa_error (char *where)
 
void numa_warn (int num, char *fmt,...)
 
int numa_migrate_pages (int pid, struct bitmask *from, struct bitmask *to)
 
int numa_move_pages (int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags)
 
int numa_sched_getaffinity (pid_t, struct bitmask *)
 
int numa_sched_setaffinity (pid_t, struct bitmask *)
 
struct bitmasknuma_parse_nodestring (const char *)
 
struct bitmasknuma_parse_nodestring_all (const char *)
 
struct bitmasknuma_parse_cpustring (const char *)
 
struct bitmasknuma_parse_cpustring_all (const char *)
 
static void numa_set_interleave_mask_compat (nodemask_t *nodemask)
 
static nodemask_t numa_get_interleave_mask_compat ()
 
static void numa_bind_compat (nodemask_t *mask)
 
static void numa_set_membind_compat (nodemask_t *mask)
 
static nodemask_t numa_get_membind_compat ()
 
static void * numa_alloc_interleaved_subset_compat (size_t size, const nodemask_t *mask)
 
static int numa_run_on_node_mask_compat (const nodemask_t *mask)
 
static nodemask_t numa_get_run_node_mask_compat ()
 
static void numa_interleave_memory_compat (void *mem, size_t size, const nodemask_t *mask)
 
static void numa_tonodemask_memory_compat (void *mem, size_t size, const nodemask_t *mask)
 
static int numa_sched_getaffinity_compat (pid_t pid, unsigned len, unsigned long *mask)
 
static int numa_sched_setaffinity_compat (pid_t pid, unsigned len, unsigned long *mask)
 
static int numa_node_to_cpus_compat (int node, unsigned long *buffer, int buffer_len)
 

Variables

struct bitmasknuma_all_nodes_ptr
 
struct bitmasknuma_nodes_ptr
 
nodemask_t numa_all_nodes
 
struct bitmasknuma_all_cpus_ptr
 
struct bitmasknuma_no_nodes_ptr
 
nodemask_t numa_no_nodes
 
int numa_exit_on_error
 
int numa_exit_on_warn
 

Class Documentation

struct nodemask_t

Definition at line 40 of file numa.h.

Class Members
unsigned long n[2048/(sizeof(unsigned long)*8)]
struct bitmask

Definition at line 44 of file numa.h.

Class Members
unsigned long * maskp
unsigned long size

Macro Definition Documentation

#define LIBNUMA_API_VERSION   2

Definition at line 21 of file numa.h.

#define NUMA_NUM_NODES   2048

Definition at line 33 of file numa.h.

Referenced by nodemask_isset_compat().

Function Documentation

void copy_bitmask_to_bitmask ( struct bitmask ,
struct bitmask  
)
void copy_bitmask_to_nodemask ( struct bitmask ,
nodemask_t  
)

Referenced by numa_get_interleave_mask_compat(), numa_get_membind_compat(), and numa_get_run_node_mask_compat().

Here is the caller graph for this function:

void copy_nodemask_to_bitmask ( nodemask_t ,
struct bitmask  
)

Referenced by numa_bind_compat().

Here is the caller graph for this function:

static void nodemask_clr_compat ( nodemask_t mask,
int  node 
)
inlinestatic

Definition at line 90 of file numa.h.

References nodemask_t::n.

91 {
92  mask->n[node / (8*sizeof(unsigned long))] &=
93  ~(1UL<<(node%(8*sizeof(unsigned long))));
94 }
unsigned long n[2048/(sizeof(unsigned long)*8)]
Definition: numa.h:41
static int nodemask_equal ( const nodemask_t a,
const nodemask_t b 
)
inlinestatic

Definition at line 106 of file numa.h.

References bitmask::maskp, numa_bitmask_equal(), and bitmask::size.

107 {
108  struct bitmask tmp_a, tmp_b;
109 
110  tmp_a.maskp = (unsigned long *)a;
111  tmp_a.size = sizeof(nodemask_t) * 8;
112 
113  tmp_b.maskp = (unsigned long *)b;
114  tmp_b.size = sizeof(nodemask_t) * 8;
115 
116  return numa_bitmask_equal(&tmp_a, &tmp_b);
117 }
Definition: numa.h:44
int numa_bitmask_equal(const struct bitmask *, const struct bitmask *)
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

static int nodemask_equal_compat ( const nodemask_t a,
const nodemask_t b 
)
inlinestatic

Definition at line 119 of file numa.h.

References bitmask::maskp, numa_bitmask_equal(), and bitmask::size.

120 {
121  struct bitmask tmp_a, tmp_b;
122 
123  tmp_a.maskp = (unsigned long *)a;
124  tmp_a.size = sizeof(nodemask_t) * 8;
125 
126  tmp_b.maskp = (unsigned long *)b;
127  tmp_b.size = sizeof(nodemask_t) * 8;
128 
129  return numa_bitmask_equal(&tmp_a, &tmp_b);
130 }
Definition: numa.h:44
int numa_bitmask_equal(const struct bitmask *, const struct bitmask *)
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

static int nodemask_isset_compat ( const nodemask_t mask,
int  node 
)
inlinestatic

Definition at line 96 of file numa.h.

References nodemask_t::n, and NUMA_NUM_NODES.

97 {
98  if ((unsigned)node >= NUMA_NUM_NODES)
99  return 0;
100  if (mask->n[node / (8*sizeof(unsigned long))] &
101  (1UL<<(node%(8*sizeof(unsigned long)))))
102  return 1;
103  return 0;
104 }
#define NUMA_NUM_NODES
Definition: numa.h:33
unsigned long n[2048/(sizeof(unsigned long)*8)]
Definition: numa.h:41
static void nodemask_set_compat ( nodemask_t mask,
int  node 
)
inlinestatic

Definition at line 84 of file numa.h.

References nodemask_t::n.

85 {
86  mask->n[node / (8*sizeof(unsigned long))] |=
87  (1UL<<(node%(8*sizeof(unsigned long))));
88 }
unsigned long n[2048/(sizeof(unsigned long)*8)]
Definition: numa.h:41
static void nodemask_zero ( nodemask_t mask)
inlinestatic

Definition at line 66 of file numa.h.

References bitmask::maskp, numa_bitmask_clearall(), and bitmask::size.

67 {
68  struct bitmask tmp;
69 
70  tmp.maskp = (unsigned long *)mask;
71  tmp.size = sizeof(nodemask_t) * 8;
73 }
Definition: numa.h:44
struct bitmask * numa_bitmask_clearall(struct bitmask *)
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

static void nodemask_zero_compat ( nodemask_t mask)
inlinestatic

Definition at line 75 of file numa.h.

References bitmask::maskp, numa_bitmask_clearall(), and bitmask::size.

76 {
77  struct bitmask tmp;
78 
79  tmp.maskp = (unsigned long *)mask;
80  tmp.size = sizeof(nodemask_t) * 8;
82 }
Definition: numa.h:44
struct bitmask * numa_bitmask_clearall(struct bitmask *)
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

void* numa_alloc ( size_t  size)
void* numa_alloc_interleaved ( size_t  size)
void* numa_alloc_interleaved_subset ( size_t  size,
struct bitmask nodemask 
)

Referenced by numa_alloc_interleaved_subset_compat().

Here is the caller graph for this function:

static void* numa_alloc_interleaved_subset_compat ( size_t  size,
const nodemask_t mask 
)
inlinestatic

Definition at line 385 of file numa.h.

References bitmask::maskp, numa_alloc_interleaved_subset(), and bitmask::size.

387 {
388  struct bitmask tmp;
389 
390  tmp.maskp = (unsigned long *)mask;
391  tmp.size = sizeof(nodemask_t) * 8;
392  return numa_alloc_interleaved_subset(size, &tmp);
393 }
Definition: numa.h:44
void * numa_alloc_interleaved_subset(size_t size, struct bitmask *nodemask)
unsigned long size
Definition: numa.h:45
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

void* numa_alloc_local ( size_t  size)
void* numa_alloc_onnode ( size_t  size,
int  node 
)
struct bitmask* numa_allocate_cpumask ( )
struct bitmask* numa_allocate_nodemask ( void  )

Referenced by numa_bind_compat().

Here is the caller graph for this function:

void numa_bind ( struct bitmask nodes)

Referenced by numa_bind_compat().

Here is the caller graph for this function:

static void numa_bind_compat ( nodemask_t mask)
inlinestatic

Definition at line 355 of file numa.h.

References copy_nodemask_to_bitmask(), numa_allocate_nodemask(), numa_bind(), and numa_bitmask_free().

356 {
357  struct bitmask *tp;
358 
359  tp = numa_allocate_nodemask();
360  copy_nodemask_to_bitmask(mask, tp);
361  numa_bind(tp);
362  numa_bitmask_free(tp);
363 }
struct bitmask * numa_allocate_nodemask(void)
void numa_bitmask_free(struct bitmask *)
Definition: numa.h:44
void numa_bind(struct bitmask *nodes)
void copy_nodemask_to_bitmask(nodemask_t *, struct bitmask *)

Here is the call graph for this function:

struct bitmask* numa_bitmask_alloc ( unsigned  int)
struct bitmask* numa_bitmask_clearall ( struct bitmask )

Referenced by nodemask_zero(), and nodemask_zero_compat().

Here is the caller graph for this function:

struct bitmask* numa_bitmask_clearbit ( struct bitmask ,
unsigned  int 
)
int numa_bitmask_equal ( const struct bitmask ,
const struct bitmask  
)

Referenced by nodemask_equal(), and nodemask_equal_compat().

Here is the caller graph for this function:

void numa_bitmask_free ( struct bitmask )
int numa_bitmask_isbitset ( const struct bitmask ,
unsigned  int 
)
unsigned int numa_bitmask_nbytes ( struct bitmask )
struct bitmask* numa_bitmask_setall ( struct bitmask )
struct bitmask* numa_bitmask_setbit ( struct bitmask ,
unsigned  int 
)
unsigned int numa_bitmask_weight ( const struct bitmask )
int numa_distance ( int  node1,
int  node2 
)
void numa_error ( char *  where)
void numa_free ( void *  mem,
size_t  size 
)
static void numa_free_cpumask ( struct bitmask b)
inlinestatic

Definition at line 277 of file numa.h.

References numa_bitmask_free().

278 {
280 }
void numa_bitmask_free(struct bitmask *)

Here is the call graph for this function:

static void numa_free_nodemask ( struct bitmask b)
inlinestatic

Definition at line 181 of file numa.h.

References numa_bitmask_free().

182 {
184 }
void numa_bitmask_free(struct bitmask *)

Here is the call graph for this function:

struct bitmask* numa_get_interleave_mask ( void  )

Referenced by numa_get_interleave_mask_compat().

Here is the caller graph for this function:

static nodemask_t numa_get_interleave_mask_compat ( )
inlinestatic

Definition at line 344 of file numa.h.

References copy_bitmask_to_nodemask(), numa_bitmask_free(), and numa_get_interleave_mask().

345 {
346  struct bitmask *tp;
347  nodemask_t mask;
348 
350  copy_bitmask_to_nodemask(tp, &mask);
351  numa_bitmask_free(tp);
352  return mask;
353 }
void numa_bitmask_free(struct bitmask *)
Definition: numa.h:44
void copy_bitmask_to_nodemask(struct bitmask *, nodemask_t *)
struct bitmask * numa_get_interleave_mask(void)

Here is the call graph for this function:

int numa_get_interleave_node ( void  )
struct bitmask* numa_get_membind ( void  )

Referenced by numa_get_membind_compat().

Here is the caller graph for this function:

static nodemask_t numa_get_membind_compat ( )
inlinestatic

Definition at line 374 of file numa.h.

References copy_bitmask_to_nodemask(), numa_bitmask_free(), and numa_get_membind().

375 {
376  struct bitmask *tp;
377  nodemask_t mask;
378 
379  tp = numa_get_membind();
380  copy_bitmask_to_nodemask(tp, &mask);
381  numa_bitmask_free(tp);
382  return mask;
383 }
void numa_bitmask_free(struct bitmask *)
Definition: numa.h:44
void copy_bitmask_to_nodemask(struct bitmask *, nodemask_t *)
struct bitmask * numa_get_membind(void)

Here is the call graph for this function:

struct bitmask* numa_get_mems_allowed ( void  )
struct bitmask* numa_get_run_node_mask ( void  )

Referenced by numa_get_run_node_mask_compat().

Here is the caller graph for this function:

static nodemask_t numa_get_run_node_mask_compat ( )
inlinestatic

Definition at line 404 of file numa.h.

References copy_bitmask_to_nodemask(), numa_bitmask_free(), and numa_get_run_node_mask().

405 {
406  struct bitmask *tp;
407  nodemask_t mask;
408 
409  tp = numa_get_run_node_mask();
410  copy_bitmask_to_nodemask(tp, &mask);
411  numa_bitmask_free(tp);
412  return mask;
413 }
void numa_bitmask_free(struct bitmask *)
Definition: numa.h:44
void copy_bitmask_to_nodemask(struct bitmask *, nodemask_t *)
struct bitmask * numa_get_run_node_mask(void)

Here is the call graph for this function:

void numa_interleave_memory ( void *  mem,
size_t  size,
struct bitmask mask 
)

Referenced by numa_interleave_memory_compat().

Here is the caller graph for this function:

static void numa_interleave_memory_compat ( void *  mem,
size_t  size,
const nodemask_t mask 
)
inlinestatic

Definition at line 415 of file numa.h.

References bitmask::maskp, numa_interleave_memory(), and bitmask::size.

417 {
418  struct bitmask tmp;
419 
420  tmp.maskp = (unsigned long *)mask;
421  tmp.size = sizeof(nodemask_t) * 8;
422  numa_interleave_memory(mem, size, &tmp);
423 }
Definition: numa.h:44
unsigned long size
Definition: numa.h:45
unsigned long * maskp
Definition: numa.h:46
void numa_interleave_memory(void *mem, size_t size, struct bitmask *mask)

Here is the call graph for this function:

int numa_max_node ( void  )
int numa_max_possible_node ( void  )
int numa_migrate_pages ( int  pid,
struct bitmask from,
struct bitmask to 
)
int numa_move_pages ( int  pid,
unsigned long  count,
void **  pages,
const int *  nodes,
int *  status,
int  flags 
)
int numa_node_of_cpu ( int  cpu)
long numa_node_size ( int  node,
long *  freep 
)

Referenced by foedus::memory::get_numa_node_size().

Here is the caller graph for this function:

long long numa_node_size64 ( int  node,
long long *  freep 
)
int numa_node_to_cpus ( int  ,
struct bitmask  
)

Referenced by numa_node_to_cpus_compat().

Here is the caller graph for this function:

static int numa_node_to_cpus_compat ( int  node,
unsigned long *  buffer,
int  buffer_len 
)
inlinestatic

Definition at line 455 of file numa.h.

References bitmask::maskp, numa_node_to_cpus(), and bitmask::size.

457 {
458  struct bitmask tmp;
459 
460  tmp.maskp = (unsigned long *)buffer;
461  tmp.size = buffer_len * 8;
462  return numa_node_to_cpus(node, &tmp);
463 }
Definition: numa.h:44
int numa_node_to_cpus(int, struct bitmask *)
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

int numa_num_configured_cpus ( )

Referenced by foedus::thread::ThreadOptions::ThreadOptions().

Here is the caller graph for this function:

int numa_num_configured_nodes ( )

Referenced by foedus::assorted::mod_numa_node(), and foedus::thread::ThreadOptions::ThreadOptions().

Here is the caller graph for this function:

int numa_num_possible_cpus ( )
int numa_num_possible_nodes ( )
int numa_num_task_cpus ( )
int numa_num_task_nodes ( )
int numa_num_thread_cpus ( )
int numa_num_thread_nodes ( )
int numa_pagesize ( void  )
struct bitmask* numa_parse_cpustring ( const char *  )
struct bitmask* numa_parse_cpustring_all ( const char *  )
struct bitmask* numa_parse_nodestring ( const char *  )
struct bitmask* numa_parse_nodestring_all ( const char *  )
void numa_police_memory ( void *  start,
size_t  size 
)
int numa_preferred ( void  )

Referenced by foedus::memory::AlignedMemory::alloc(), and foedus::memory::ScopedNumaPreferred::ScopedNumaPreferred().

Here is the caller graph for this function:

void* numa_realloc ( void *  old_addr,
size_t  old_size,
size_t  new_size 
)
int numa_run_on_node ( int  node)

Referenced by foedus::thread::NumaThreadScope::NumaThreadScope().

Here is the caller graph for this function:

int numa_run_on_node_mask ( struct bitmask mask)

Referenced by numa_run_on_node_mask_compat(), and foedus::thread::NumaThreadScope::~NumaThreadScope().

Here is the caller graph for this function:

int numa_run_on_node_mask_all ( struct bitmask mask)
static int numa_run_on_node_mask_compat ( const nodemask_t mask)
inlinestatic

Definition at line 395 of file numa.h.

References bitmask::maskp, numa_run_on_node_mask(), and bitmask::size.

396 {
397  struct bitmask tmp;
398 
399  tmp.maskp = (unsigned long *)mask;
400  tmp.size = sizeof(nodemask_t) * 8;
401  return numa_run_on_node_mask(&tmp);
402 }
Definition: numa.h:44
unsigned long * maskp
Definition: numa.h:46
int numa_run_on_node_mask(struct bitmask *mask)

Here is the call graph for this function:

int numa_sched_getaffinity ( pid_t  ,
struct bitmask  
)

Referenced by numa_sched_getaffinity_compat().

Here is the caller graph for this function:

static int numa_sched_getaffinity_compat ( pid_t  pid,
unsigned  len,
unsigned long *  mask 
)
inlinestatic

Definition at line 435 of file numa.h.

References bitmask::maskp, numa_sched_getaffinity(), and bitmask::size.

437 {
438  struct bitmask tmp;
439 
440  tmp.maskp = (unsigned long *)mask;
441  tmp.size = len * 8;
442  return numa_sched_getaffinity(pid, &tmp);
443 }
Definition: numa.h:44
int numa_sched_getaffinity(pid_t, struct bitmask *)
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

int numa_sched_setaffinity ( pid_t  ,
struct bitmask  
)

Referenced by numa_sched_setaffinity_compat().

Here is the caller graph for this function:

static int numa_sched_setaffinity_compat ( pid_t  pid,
unsigned  len,
unsigned long *  mask 
)
inlinestatic

Definition at line 445 of file numa.h.

References bitmask::maskp, numa_sched_setaffinity(), and bitmask::size.

447 {
448  struct bitmask tmp;
449 
450  tmp.maskp = (unsigned long *)mask;
451  tmp.size = len * 8;
452  return numa_sched_setaffinity(pid, &tmp);
453 }
Definition: numa.h:44
int numa_sched_setaffinity(pid_t, struct bitmask *)
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

void numa_set_bind_policy ( int  strict)
void numa_set_interleave_mask ( struct bitmask nodemask)

Referenced by numa_set_interleave_mask_compat().

Here is the caller graph for this function:

static void numa_set_interleave_mask_compat ( nodemask_t nodemask)
inlinestatic

Definition at line 335 of file numa.h.

References bitmask::maskp, numa_set_interleave_mask(), and bitmask::size.

336 {
337  struct bitmask tmp;
338 
339  tmp.maskp = (unsigned long *)nodemask;
340  tmp.size = sizeof(nodemask_t) * 8;
342 }
Definition: numa.h:44
unsigned long * maskp
Definition: numa.h:46
void numa_set_interleave_mask(struct bitmask *nodemask)

Here is the call graph for this function:

void numa_set_localalloc ( void  )

Referenced by foedus::thread::NumaThreadScope::NumaThreadScope().

Here is the caller graph for this function:

void numa_set_membind ( struct bitmask nodemask)

Referenced by numa_set_membind_compat().

Here is the caller graph for this function:

static void numa_set_membind_compat ( nodemask_t mask)
inlinestatic

Definition at line 365 of file numa.h.

References bitmask::maskp, numa_set_membind(), and bitmask::size.

366 {
367  struct bitmask tmp;
368 
369  tmp.maskp = (unsigned long *)mask;
370  tmp.size = sizeof(nodemask_t) * 8;
371  numa_set_membind(&tmp);
372 }
Definition: numa.h:44
void numa_set_membind(struct bitmask *nodemask)
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

void numa_set_preferred ( int  node)
void numa_set_strict ( int  flag)
void numa_setlocal_memory ( void *  start,
size_t  size 
)
void numa_tonode_memory ( void *  start,
size_t  size,
int  node 
)
void numa_tonodemask_memory ( void *  mem,
size_t  size,
struct bitmask mask 
)

Referenced by numa_tonodemask_memory_compat().

Here is the caller graph for this function:

static void numa_tonodemask_memory_compat ( void *  mem,
size_t  size,
const nodemask_t mask 
)
inlinestatic

Definition at line 425 of file numa.h.

References bitmask::maskp, numa_tonodemask_memory(), and bitmask::size.

427 {
428  struct bitmask tmp;
429 
430  tmp.maskp = (unsigned long *)mask;
431  tmp.size = sizeof(nodemask_t) * 8;
432  numa_tonodemask_memory(mem, size, &tmp);
433 }
Definition: numa.h:44
void numa_tonodemask_memory(void *mem, size_t size, struct bitmask *mask)
unsigned long size
Definition: numa.h:45
unsigned long * maskp
Definition: numa.h:46

Here is the call graph for this function:

void numa_warn ( int  num,
char *  fmt,
  ... 
)

Variable Documentation

struct bitmask* numa_all_cpus_ptr
nodemask_t numa_all_nodes
struct bitmask* numa_all_nodes_ptr
int numa_exit_on_error
int numa_exit_on_warn
nodemask_t numa_no_nodes
struct bitmask* numa_no_nodes_ptr
struct bitmask* numa_nodes_ptr