Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librt add missing stuff for the affinity calls (Rocky Ho...
details: https://anonhg.NetBSD.org/src/rev/e1917c83e928
branches: trunk
changeset: 346858:e1917c83e928
user: christos <christos%NetBSD.org@localhost>
date: Fri Aug 05 13:03:13 2016 +0000
description:
add missing stuff for the affinity calls (Rocky Hotas)
diffstat:
lib/librt/Makefile | 4 +++-
lib/librt/sched.3 | 14 ++++++++++----
2 files changed, 13 insertions(+), 5 deletions(-)
diffs (61 lines):
diff -r a134faec4c36 -r e1917c83e928 lib/librt/Makefile
--- a/lib/librt/Makefile Fri Aug 05 10:39:49 2016 +0000
+++ b/lib/librt/Makefile Fri Aug 05 13:03:13 2016 +0000
@@ -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_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 -r a134faec4c36 -r e1917c83e928 lib/librt/sched.3
--- a/lib/librt/sched.3 Fri Aug 05 10:39:49 2016 +0000
+++ b/lib/librt/sched.3 Fri Aug 05 13:03:13 2016 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index