linux-libnuma.h File Reference

Macros to help interaction between libtopology and Linux libnuma. More...

#include <topology.h>
#include <numa.h>
#include <assert.h>

Go to the source code of this file.

Functions

static __inline__ void topo_cpuset_to_linux_libnuma_ulongs (topo_topology_t topology, const topo_cpuset_t *cpuset, unsigned long *mask, unsigned long *maxnode)
 Convert libtopology CPU set cpuset into the array of unsigned long mask.
static __inline__ void topo_cpuset_from_linux_libnuma_ulongs (topo_topology_t topology, topo_cpuset_t *cpuset, const unsigned long *mask, unsigned long maxnode)
 Convert the array of unsigned long mask into libtopology CPU set cpuset.
static __inline__ struct bitmask * topo_cpuset_to_linux_libnuma_bitmask (topo_topology_t topology, const topo_cpuset_t *cpuset)
 Convert libtopology CPU set cpuset into the returned libnuma bitmask.
static __inline__ void topo_cpuset_from_linux_libnuma_bitmask (topo_topology_t topology, topo_cpuset_t *cpuset, const struct bitmask *bitmask)
 Convert libnuma bitmask bitmask into libtopology CPU set cpuset.
static __inline__ void topo_cpuset_to_linux_libnuma_nodemask (topo_topology_t topology, const topo_cpuset_t *cpuset, nodemask_t *nodemask)
 Convert libtopology CPU set cpuset into libnuma nodemask nodemask.
static __inline__ void topo_cpuset_from_linux_libnuma_nodemask (topo_topology_t topology, topo_cpuset_t *cpuset, const nodemask_t *nodemask)
 Convert libnuma nodemask nodemask into libtopology CPU set cpuset.


Detailed Description

Macros to help interaction between libtopology and Linux libnuma.

Applications that use both Linux libnuma and libtopology may want to include this file so as to ease conversion between their respective types.


Generated on Fri Jul 3 19:00:23 2009 for libtopology by  doxygen 1.5.9