From f87fbe2f556558889196b39e9ed509eb562f4303 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 5 Aug 2016 13:03:13 +0000 Subject: [PATCH] add missing stuff for the affinity calls (Rocky Hotas) --- lib/librt/Makefile | 4 +++- lib/librt/sched.3 | 14 ++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/librt/Makefile b/lib/librt/Makefile index 0321f3de205d..323b7b825ec5 100644 --- a/lib/librt/Makefile +++ b/lib/librt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2016/07/05 21:13:12 christos Exp $ +# $NetBSD: Makefile,v 1.20 2016/08/05 13:03:13 christos Exp $ # .include @@ -40,6 +40,8 @@ MLINKS+= sched.3 sched_get_priority_max.3 MLINKS+= sched.3 sched_get_priority_min.3 MLINKS+= sched.3 sched_rr_get_interval.3 MLINKS+= sched.3 sched_yield.3 +MLINKS+= sched.3 sched_setaffinity_np.3 +MLINKS+= sched.3 sched_getaffinity_np.3 MLINKS+= shm_open.3 shm_unlink.3 diff --git a/lib/librt/sched.3 b/lib/librt/sched.3 index d0e468df3674..ad78e636c494 100644 --- a/lib/librt/sched.3 +++ b/lib/librt/sched.3 @@ -1,6 +1,6 @@ -.\" $NetBSD: sched.3,v 1.16 2016/08/05 08:55:28 wiz Exp $ +.\" $NetBSD: sched.3,v 1.17 2016/08/05 13:03:13 christos Exp $ .\" -.\" Copyright (c) 2008 The NetBSD Foundation, Inc. +.\" Copyright (c) 2008, 2016 The NetBSD Foundation, Inc. .\" All rights reserved. .\" .\" This code is derived from software contributed to The NetBSD Foundation @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd August 4, 2016 +.Dd August 5, 2016 .Dt SCHED 3 .Os .Sh NAME @@ -39,7 +39,9 @@ .Nm sched_get_priority_min , .Nm sched_rr_get_interval , .Nm sched_yield , -.Nm sched_protect +.Nm sched_protect , +.Nm sched_setaffinity_np , +.Nm sched_getaffinity_np .Nd process scheduling .Sh LIBRARY .Lb librt @@ -62,6 +64,10 @@ .Ft int .Fn sched_yield "void" .Ft int +.fn sched_setaffinity_np "pid_t pid" "size_t size" "cpuset_t *cpuset" +.Ft int +.fn sched_getaffinity_np "pid_t pid" "size_t size" "cpuset_t *cpuset" +.Ft int .Fn sched_protect "int priority" .Sh DESCRIPTION This section describes the functions used to get scheduling information