add missing stuff for the affinity calls (Rocky Hotas)

This commit is contained in:
christos 2016-08-05 13:03:13 +00:00
parent 3e43f35414
commit f87fbe2f55
2 changed files with 13 additions and 5 deletions

View File

@ -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.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

View File

@ -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