1 /*
2  * Copyright © 2012 Inria.  All rights reserved.
3  * See COPYING in top-level directory.
4  */
5 
6 #ifndef HWLOC_PORT_NETBSD_SCHED_H
7 #define HWLOC_PORT_NETBSD_SCHED_H
8 
9 typedef struct _cpuset cpuset_t;
10 typedef unsigned long cpuid_t;
11 
12 cpuset_t *cpuset_create(void);
13 void    cpuset_destroy(cpuset_t *);
14 void    cpuset_zero(cpuset_t *);
15 int     cpuset_set(cpuid_t, cpuset_t *);
16 int     cpuset_isset(cpuid_t, const cpuset_t *);
17 size_t  cpuset_size(const cpuset_t *);
18 
19 int     sched_getaffinity_np(pid_t, size_t, cpuset_t *);
20 int     sched_setaffinity_np(pid_t, size_t, cpuset_t *);
21 
22 #endif /* HWLOC_PORT_NETBSD_SCHED_H */
23