git: libc: Add sched_{set,get}affinity().
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Fri Jan 13 20:57:57 PST 2017
commit 907281d1a2ecde2d5dfefe84c7a5781df8a217d4
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Sat Jan 14 10:18:55 2017 +0800
libc: Add sched_{set,get}affinity().
Same as other sched_ fucntions, these two functions do _not_ support
the overriding pid as tid as what Linux supports.
Summary of changes:
lib/libc/sys/Makefile.inc | 4 +-
lib/libc/sys/Symbol.map | 2 +
lib/libc/sys/lwp_setaffinity.2 | 14 +-
.../toeplitz.h => lib/libc/sys/sched_getaffinity.c | 22 +--
lib/libc/sys/sched_setaffinity.2 | 220 +++++++++++++++++++++
.../toeplitz.h => lib/libc/sys/sched_setaffinity.c | 27 ++-
sys/cpu/x86_64/include/cpumask.h | 4 +
sys/sys/param.h | 3 +-
sys/sys/sched.h | 52 +++++
9 files changed, 319 insertions(+), 29 deletions(-)
copy sys/net/toeplitz.h => lib/libc/sys/sched_getaffinity.c (84%)
create mode 100644 lib/libc/sys/sched_setaffinity.2
copy sys/net/toeplitz.h => lib/libc/sys/sched_setaffinity.c (77%)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/907281d1a2ecde2d5dfefe84c7a5781df8a217d4
--
DragonFly BSD source repository
More information about the Commits
mailing list