Module Name: src
Committed By: christos
Date: Fri Aug 5 13:03:13 UTC 2016
Modified Files:
src/lib/librt: Makefile sched.3
Log Message:
add missing stuff for the affinity calls (Rocky Hotas)
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/lib/librt/Makefile
cvs rdiff -u -r1.16 -r1.17 src/lib/librt/sched.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/librt/Makefile
diff -u src/lib/librt/Makefile:1.19 src/lib/librt/Makefile:1.20
--- src/lib/librt/Makefile:1.19 Tue Jul 5 17:13:12 2016
+++ src/lib/librt/Makefile Fri Aug 5 09:03:13 2016
@@ -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 <bsd.own.mk>
@@ -40,6 +40,8 @@ MLINKS+= sched.3 sched_get_priority_max.
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
Index: src/lib/librt/sched.3
diff -u src/lib/librt/sched.3:1.16 src/lib/librt/sched.3:1.17
--- src/lib/librt/sched.3:1.16 Fri Aug 5 04:55:28 2016
+++ src/lib/librt/sched.3 Fri Aug 5 09:03:13 2016
@@ -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