Back to index

numactl  2.0.8~rc4
Functions
mynode.c File Reference
#include <numa.h>
#include <numaif.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int main (void)

Function Documentation

int main ( void  )

Definition at line 5 of file mynode.c.

{
       int nd;
       char *man = numa_alloc(1000); 
       *man = 1;
       if (get_mempolicy(&nd, NULL, 0, man, MPOL_F_NODE|MPOL_F_ADDR) < 0)
              perror("get_mempolicy");
       else
              printf("my node %d\n", nd); 
       return 0;
} 

Here is the call graph for this function: