Helpers for manipulating glibc sched affinity


Functions

static __inline__ void topo_cpuset_to_glibc_sched_affinity (topo_topology_t topology, const topo_cpuset_t *toposet, cpu_set_t *schedset, size_t schedsetsize)
 Convert libtopology CPU set toposet into glibc sched affinity CPU set schedset.
static __inline__ void topo_cpuset_from_glibc_sched_affinity (topo_topology_t topology, topo_cpuset_t *toposet, const cpu_set_t *schedset, size_t schedsetsize)
 Convert libtopology CPU set toposet into glibc sched affinity CPU set schedset.

Function Documentation

static __inline__ void topo_cpuset_from_glibc_sched_affinity ( topo_topology_t  topology,
topo_cpuset_t toposet,
const cpu_set_t *  schedset,
size_t  schedsetsize 
) [static]

Convert libtopology CPU set toposet into glibc sched affinity CPU set schedset.

This function may be used before calling sched_setaffinity or any other function that takes a cpu_set_t as input parameter.

schedsetsize should be sizeof(cpu_set_t) unless schedset was dynamically allocated with CPU_ALLOC

static __inline__ void topo_cpuset_to_glibc_sched_affinity ( topo_topology_t  topology,
const topo_cpuset_t toposet,
cpu_set_t *  schedset,
size_t  schedsetsize 
) [static]

Convert libtopology CPU set toposet into glibc sched affinity CPU set schedset.

This function may be used before calling sched_setaffinity or any other function that takes a cpu_set_t as input parameter.

schedsetsize should be sizeof(cpu_set_t) unless schedset was dynamically allocated with CPU_ALLOC


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