4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _SYS_FXPRIOCNTL_H
28 #define _SYS_FXPRIOCNTL_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/types.h>
33 #include <sys/thread.h>
40 * Fixed-priority class specific structures for the priocntl system call.
43 typedef struct fxparms
{
44 pri_t fx_upri
; /* fixed-priority user priority */
45 pri_t fx_uprilim
; /* fixed-priority user priority limit */
46 uint_t fx_tqsecs
; /* seconds in time quantum */
47 int fx_tqnsecs
; /* additional nanosecs in time quant */
51 typedef struct fxinfo
{
52 pri_t fx_maxupri
; /* configured limits of user priority range */
56 #define FX_NOCHANGE -32768
61 * Fixed-priority class specific keys for the priocntl system call varargs
64 #define FX_KY_UPRILIM 1 /* fixed-priority user priority limit */
65 #define FX_KY_UPRI 2 /* fixed-priority user priority */
66 #define FX_KY_TQSECS 3 /* seconds in time quantum */
67 #define FX_KY_TQNSECS 4 /* nanoseconds in time quantum */
71 * The following is used by the dispadmin(1M) command for
72 * scheduler administration and is not for general use.
76 /* Data structure for ILP32 clients */
77 typedef struct fxadmin32
{
82 #endif /* _SYSCALL32 */
84 typedef struct fxadmin
{
85 struct fxdpent
*fx_dpents
;
90 #define FX_GETDPSIZE 1
98 #endif /* _SYS_FXPRIOCNTL_H */