#include <topology.h>
#include <topology/helper.h>
Go to the source code of this file.
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 . |
Applications that use both libtopology and glibc scheduling routines such as sched_getaffinity may want to include this file so as to ease conversion between their respective types.