rtprio.2 (108028) | rtprio.2 (108087) |
---|---|
1.\" Copyright (c) 1994, Henrik Vestergaard Draboel 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 13 unchanged lines hidden (view full) --- 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" | 1.\" Copyright (c) 1994, Henrik Vestergaard Draboel 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 13 unchanged lines hidden (view full) --- 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" |
30.\" $FreeBSD: head/lib/libc/sys/rtprio.2 108028 2002-12-18 09:22:32Z ru $ | 30.\" $FreeBSD: head/lib/libc/sys/rtprio.2 108087 2002-12-19 09:40:28Z ru $ |
31.\" 32.Dd July 23, 1994 33.Dt RTPRIO 2 34.Os 35.Sh NAME 36.Nm rtprio 37.Nd examine or modify a process realtime or idle priority 38.Sh LIBRARY --- 4 unchanged lines hidden (view full) --- 43.Ft int 44.Fn rtprio "int function" "pid_t pid" "struct rtprio *rtp" 45.Sh DESCRIPTION 46The 47.Fn rtprio 48system call 49is used to lookup or change the realtime or idle priority of a process. 50.Pp | 31.\" 32.Dd July 23, 1994 33.Dt RTPRIO 2 34.Os 35.Sh NAME 36.Nm rtprio 37.Nd examine or modify a process realtime or idle priority 38.Sh LIBRARY --- 4 unchanged lines hidden (view full) --- 43.Ft int 44.Fn rtprio "int function" "pid_t pid" "struct rtprio *rtp" 45.Sh DESCRIPTION 46The 47.Fn rtprio 48system call 49is used to lookup or change the realtime or idle priority of a process. 50.Pp |
51The |
|
51.Fa function | 52.Fa function |
53argument |
|
52specifies the operation to be performed. 53RTP_LOOKUP to lookup the current priority, 54and RTP_SET to set the priority. | 54specifies the operation to be performed. 55RTP_LOOKUP to lookup the current priority, 56and RTP_SET to set the priority. |
57The |
|
55.Fa pid | 58.Fa pid |
59argument |
|
56specifies the process to be used, 0 for the current process. 57.Pp | 60specifies the process to be used, 0 for the current process. 61.Pp |
62The |
|
58.Fa *rtp | 63.Fa *rtp |
64argument |
|
59is a pointer to a struct rtprio which is used to specify the priority and priority type. 60This structure has the following form: 61.Bd -literal 62struct rtprio { 63 u_short type; 64 u_short prio; 65}; 66.Ed --- 54 unchanged lines hidden --- | 65is a pointer to a struct rtprio which is used to specify the priority and priority type. 66This structure has the following form: 67.Bd -literal 68struct rtprio { 69 u_short type; 70 u_short prio; 71}; 72.Ed --- 54 unchanged lines hidden --- |