Deleted Added
full compact
sched_setscheduler.2 (108028) sched_setscheduler.2 (108087)
1.\" $FreeBSD: head/lib/libc/sys/sched_setscheduler.2 108028 2002-12-18 09:22:32Z ru $
1.\" $FreeBSD: head/lib/libc/sys/sched_setscheduler.2 108087 2002-12-19 09:40:28Z ru $
2.\" Copyright (c) 1998 HD Associates, Inc.
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer.

--- 32 unchanged lines hidden (view full) ---

42The
43.Fn sched_setscheduler
44system call sets the scheduling policy and scheduling parameters
45of the process specified by
46.Fa pid
47to
48.Fa policy
49and the parameters specified in the
2.\" Copyright (c) 1998 HD Associates, Inc.
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer.

--- 32 unchanged lines hidden (view full) ---

42The
43.Fn sched_setscheduler
44system call sets the scheduling policy and scheduling parameters
45of the process specified by
46.Fa pid
47to
48.Fa policy
49and the parameters specified in the
50.Fa sched_param
50.Vt sched_param
51structure pointed to by
52.Fa param ,
53respectively.
54The value of the
55.Fa sched_priority
56member in the
57.Fa param
58structure must be any integer within the inclusive priority range for

--- 28 unchanged lines hidden (view full) ---

87First-in-first-out fixed priority scheduling with no round robin scheduling;
88.It Bq Er SCHED_OTHER
89The standard time sharing scheduler;
90.It Bq Er SCHED_RR
91Round-robin scheduling across same priority processes.
92.El
93.Pp
94The
51structure pointed to by
52.Fa param ,
53respectively.
54The value of the
55.Fa sched_priority
56member in the
57.Fa param
58structure must be any integer within the inclusive priority range for

--- 28 unchanged lines hidden (view full) ---

87First-in-first-out fixed priority scheduling with no round robin scheduling;
88.It Bq Er SCHED_OTHER
89The standard time sharing scheduler;
90.It Bq Er SCHED_RR
91Round-robin scheduling across same priority processes.
92.El
93.Pp
94The
95.Fa sched_param
95.Vt sched_param
96structure is defined in
97.Fa <sched.h> :
98.Pp
99.Bd -literal -offset indent
100struct sched_param {
101 int sched_priority; /* scheduling priority */
102};
103.Ed

--- 37 unchanged lines hidden (view full) ---

141The requesting process doesn not have permission as detailed in
142.Xr p1003_1b .
143.It Bq Er ESRCH
144No process can be found corresponding to that specified by
145.Fa pid .
146.It Bq Er EINVAL
147The value of the
148.Fa policy
96structure is defined in
97.Fa <sched.h> :
98.Pp
99.Bd -literal -offset indent
100struct sched_param {
101 int sched_priority; /* scheduling priority */
102};
103.Ed

--- 37 unchanged lines hidden (view full) ---

141The requesting process doesn not have permission as detailed in
142.Xr p1003_1b .
143.It Bq Er ESRCH
144No process can be found corresponding to that specified by
145.Fa pid .
146.It Bq Er EINVAL
147The value of the
148.Fa policy
149parameter is invalid, or one or more of the parameters contained in
149argument is invalid, or one or more of the parameters contained in
150.Fa param
151is outside the valid range for the specified scheduling policy.
152.El
153.Sh SEE ALSO
154.Xr sched_getparam 2 ,
155.Xr sched_get_priority_max 2 ,
156.Xr sched_get_priority_min 2 ,
157.Xr sched_rr_get_interval 2 ,
158.Xr sched_setparam 2 ,
159.Xr sched_yield 2
160.Sh STANDARDS
161The
162.Fn sched_setscheduler
163and
164.Fn sched_getscheduler
165system calls conform to
166.St -p1003.1b-93 .
150.Fa param
151is outside the valid range for the specified scheduling policy.
152.El
153.Sh SEE ALSO
154.Xr sched_getparam 2 ,
155.Xr sched_get_priority_max 2 ,
156.Xr sched_get_priority_min 2 ,
157.Xr sched_rr_get_interval 2 ,
158.Xr sched_setparam 2 ,
159.Xr sched_yield 2
160.Sh STANDARDS
161The
162.Fn sched_setscheduler
163and
164.Fn sched_getscheduler
165system calls conform to
166.St -p1003.1b-93 .