From 5e30665413970a88252c8e111763997c847db6f8 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 14 Dec 2007 23:12:55 +0000 Subject: [PATCH] Add some words about lwp_rtprio() to rtprio(2). --- lib/libc/sys/Makefile.inc | 3 ++- lib/libc/sys/rtprio.2 | 23 ++++++++++++++++++----- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 01469a6220..f943c0e436 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,6 +1,6 @@ # @(#)Makefile.inc 8.3 (Berkeley) 10/24/94 # $FreeBSD: src/lib/libc/sys/Makefile.inc,v 1.75.2.7 2003/04/22 17:31:18 trhodes Exp $ -# $DragonFly: src/lib/libc/sys/Makefile.inc,v 1.28 2007/08/03 08:40:14 swildner Exp $ +# $DragonFly: src/lib/libc/sys/Makefile.inc,v 1.29 2007/12/14 23:12:55 swildner Exp $ # sys sources .PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys ${.CURDIR}/../libc/sys @@ -128,6 +128,7 @@ MLINKS+=mount.2 unmount.2 MLINKS+=pathconf.2 fpathconf.2 MLINKS+=read.2 pread.2 read.2 preadv.2 read.2 readv.2 MLINKS+=recv.2 recvfrom.2 recv.2 recvmsg.2 +MLINKS+=rtprio.2 lwp_rtprio.2 MLINKS+=send.2 sendmsg.2 send.2 sendto.2 MLINKS+=setpgid.2 setpgrp.2 MLINKS+=setresuid.2 getresgid.2 setresuid.2 getresuid.2 setresuid.2 setresgid.2 diff --git a/lib/libc/sys/rtprio.2 b/lib/libc/sys/rtprio.2 index e07182aca1..966b265995 100644 --- a/lib/libc/sys/rtprio.2 +++ b/lib/libc/sys/rtprio.2 @@ -28,14 +28,15 @@ .\" SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc/sys/rtprio.2,v 1.13.2.9 2001/12/14 18:34:01 ru Exp $ -.\" $DragonFly: src/lib/libc/sys/rtprio.2,v 1.5 2007/12/14 22:51:57 swildner Exp $ +.\" $DragonFly: src/lib/libc/sys/rtprio.2,v 1.6 2007/12/14 23:12:55 swildner Exp $ .\" -.Dd July 23, 1994 +.Dd December 14, 2007 .Dt RTPRIO 2 .Os .Sh NAME -.Nm rtprio -.Nd examine or modify a process realtime or idle priority +.Nm rtprio , +.Nm lwp_rtprio +.Nd examine or modify a process/lwp realtime or idle priority .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -43,6 +44,8 @@ .In sys/rtprio.h .Ft int .Fn rtprio "int function" "pid_t pid" "struct rtprio *rtp" +.Ft int +.Fn lwp_rtprio "int function" "pid_t pid" "lwpid_t tid" "struct rtprio *rtp" .Sh DESCRIPTION .Fn rtprio is used to lookup or change the realtime or idle priority of a process. @@ -94,10 +97,20 @@ when no other real/normal priority process is runnable. Higher real/idle priority processes preempt lower real/idle priority processes. Processes of equal real/idle priority are run round-robin. +.Pp +The +.Fn lwp_rtprio +function is the lwp counterpart of +.Fn rtprio . +It takes one additional argument, +.Fa tid , +specifying the lwp to be used, -1 for the current lwp. .Sh RETURN VALUES -.Rv -std rtprio +.Rv -std rtprio lwp_rtprio .Sh ERRORS .Fn rtprio +and +.Fn lwp_rtprio will fail if .Bl -tag -width Er .It Bq Er EINVAL -- 2.41.0