xref: /titanic_41/usr/src/uts/common/sys/fsspriocntl.h (revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968)
1 /*
2  * CDDL HEADER START
3  *
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
7  * with the License.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 2001 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #ifndef	_SYS_FSSPRIOCNTL_H
28 #define	_SYS_FSSPRIOCNTL_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <sys/types.h>
33 #include <sys/fss.h>
34 
35 #ifdef	__cplusplus
36 extern "C" {
37 #endif
38 
39 /*
40  * Fair-share class specific structures for the priocntl system call.
41  */
42 typedef struct fssparms {
43 	pri_t		fss_uprilim;	/* user priority limit */
44 	pri_t		fss_upri;	/* user priority */
45 } fssparms_t;
46 
47 typedef struct fssinfo {
48 	pri_t	fss_maxupri;	/* configured limit on user priority range */
49 } fssinfo_t;
50 
51 #define	FSS_NOCHANGE	-32768
52 
53 /*
54  * Fair-sharing class specific keys for the priocntl system call varargs
55  * interface.
56  */
57 #define	FSS_KY_UPRILIM	1	/* user priority limit */
58 #define	FSS_KY_UPRI	2	/* user priority */
59 
60 /*
61  * The following is used by the dispadmin(1M) command for scheduler
62  * administration and is not for general use.
63  */
64 typedef struct fssadmin {
65 	short	fss_quantum;
66 	short	fss_cmd;
67 } fssadmin_t;
68 
69 #define	FSS_GETADMIN	1
70 #define	FSS_SETADMIN	2
71 
72 #ifdef	__cplusplus
73 }
74 #endif
75 
76 #endif	/* _SYS_FSSPRIOCNTL_H */
77