summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2017-03-19 15:15:34 +0000
committertrasz <trasz@FreeBSD.org>2017-03-19 15:15:34 +0000
commit483674d1c54edc72558e86d780f51e6e7ecd90e8 (patch)
tree04d7b2521792ce75fb692c3353dcbc59c2deb293 /sys/sys
parent5ec65527ada093e90047edf47beabdcc95d99b95 (diff)
downloadFreeBSD-src-483674d1c54edc72558e86d780f51e6e7ecd90e8.zip
FreeBSD-src-483674d1c54edc72558e86d780f51e6e7ecd90e8.tar.gz
MFC r313281:
Add kern_cpuset_getaffinity() and kern_cpuset_getaffinity(), and use it in compats instead of their sys_*() counterparts. Sponsored by: DARPA, AFRL
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/syscallsubr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index f783b90..5745ff3 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -33,6 +33,7 @@
#include <sys/socket.h>
#include <sys/mac.h>
#include <sys/mount.h>
+#include <sys/_cpuset.h>
struct file;
struct filecaps;
@@ -87,6 +88,11 @@ int kern_clock_settime(struct thread *td, clockid_t clock_id,
int kern_close(struct thread *td, int fd);
int kern_connectat(struct thread *td, int dirfd, int fd,
struct sockaddr *sa);
+int kern_cpuset_getaffinity(struct thread *td, cpulevel_t level,
+ cpuwhich_t which, id_t id, size_t cpusetsize, cpuset_t *maskp);
+int kern_cpuset_setaffinity(struct thread *td, cpulevel_t level,
+ cpuwhich_t which, id_t id, size_t cpusetsize,
+ const cpuset_t *maskp);
int kern_cpuset_getid(struct thread *td, cpulevel_t level,
cpuwhich_t which, id_t id, cpusetid_t *setid);
int kern_cpuset_setid(struct thread *td, cpuwhich_t which,
OpenPOWER on IntegriCloud