Back to index

numactl  2.0.8~rc4
Defines | Functions
numaif.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MPOL_DEFAULT   0
#define MPOL_PREFERRED   1
#define MPOL_BIND   2
#define MPOL_INTERLEAVE   3
#define MPOL_MAX   MPOL_INTERLEAVE
#define MPOL_F_NODE   (1<<0) /* return next il node or node of address */
#define MPOL_F_ADDR   (1<<1) /* look up vma using address */
#define MPOL_F_MEMS_ALLOWED   (1<<2) /* query nodes allowed in cpuset */
#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 conform to mapping */
#define MPOL_MF_MOVE_ALL   (1<<2) /* Move every page to conform to mapping */

Functions

long get_mempolicy (int *policy, const unsigned long *nmask, unsigned long maxnode, void *addr, int flags)
long mbind (void *start, unsigned long len, int mode, const unsigned long *nmask, unsigned long maxnode, unsigned flags)
long set_mempolicy (int mode, const unsigned long *nmask, unsigned long maxnode)
long migrate_pages (int pid, unsigned long maxnode, const unsigned long *frommask, const unsigned long *tomask)
long move_pages (int pid, unsigned long count, void **pages, const int *nodes, int *status, int flags)

Define Documentation

#define MPOL_BIND   2

Definition at line 27 of file numaif.h.

#define MPOL_DEFAULT   0

Definition at line 25 of file numaif.h.

#define MPOL_F_ADDR   (1<<1) /* look up vma using address */

Definition at line 36 of file numaif.h.

#define MPOL_F_MEMS_ALLOWED   (1<<2) /* query nodes allowed in cpuset */

Definition at line 37 of file numaif.h.

#define MPOL_F_NODE   (1<<0) /* return next il node or node of address */

Definition at line 33 of file numaif.h.

#define MPOL_INTERLEAVE   3

Definition at line 28 of file numaif.h.

#define MPOL_MAX   MPOL_INTERLEAVE

Definition at line 30 of file numaif.h.

#define MPOL_MF_MOVE   (1<<1) /* Move pages owned by this process to conform to mapping */

Definition at line 41 of file numaif.h.

#define MPOL_MF_MOVE_ALL   (1<<2) /* Move every page to conform to mapping */

Definition at line 42 of file numaif.h.

#define MPOL_MF_STRICT   (1<<0) /* Verify existing pages in the mapping */

Definition at line 40 of file numaif.h.

#define MPOL_PREFERRED   1

Definition at line 26 of file numaif.h.


Function Documentation

long get_mempolicy ( int *  policy,
const unsigned long *  nmask,
unsigned long  maxnode,
void *  addr,
int  flags 
)

Definition at line 184 of file syscall.c.

{
       return syscall(__NR_get_mempolicy, policy, nmask,
                                   maxnode, addr, flags);
}

Here is the caller graph for this function:

long mbind ( void *  start,
unsigned long  len,
int  mode,
const unsigned long *  nmask,
unsigned long  maxnode,
unsigned  flags 
)

Definition at line 191 of file syscall.c.

{
       return syscall6(__NR_mbind, (long)start, len, mode, (long)nmask,
                            maxnode, flags);
}

Here is the caller graph for this function:

long migrate_pages ( int  pid,
unsigned long  maxnode,
const unsigned long *  frommask,
const unsigned long *  tomask 
)

Definition at line 206 of file syscall.c.

{
       return syscall(__NR_migrate_pages, pid, maxnode, frommask, tomask);
}

Here is the caller graph for this function:

long move_pages ( int  pid,
unsigned long  count,
void **  pages,
const int *  nodes,
int *  status,
int  flags 
)

Definition at line 212 of file syscall.c.

{
       return syscall(__NR_move_pages, pid, count, pages, nodes, status, flags);
}

Here is the caller graph for this function:

long set_mempolicy ( int  mode,
const unsigned long *  nmask,
unsigned long  maxnode 
)

Definition at line 198 of file syscall.c.

{
       long i;
       i = syscall(__NR_set_mempolicy,mode,nmask,maxnode);
       return i;
}

Here is the caller graph for this function: