xref: /illumos-gate/usr/src/uts/common/sys/fsspriocntl.h (revision dd72704bd9e794056c558153663c739e2012d721)
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 #include <sys/types.h>
31 #include <sys/fss.h>
32 
33 #ifdef	__cplusplus
34 extern "C" {
35 #endif
36 
37 /*
38  * Fair-share class specific structures for the priocntl system call.
39  */
40 typedef struct fssparms {
41 	pri_t		fss_uprilim;	/* user priority limit */
42 	pri_t		fss_upri;	/* user priority */
43 } fssparms_t;
44 
45 typedef struct fssinfo {
46 	pri_t	fss_maxupri;	/* configured limit on user priority range */
47 } fssinfo_t;
48 
49 #define	FSS_NOCHANGE	-32768
50 
51 /*
52  * Fair-sharing class specific keys for the priocntl system call varargs
53  * interface.
54  */
55 #define	FSS_KY_UPRILIM	1	/* user priority limit */
56 #define	FSS_KY_UPRI	2	/* user priority */
57 
58 /*
59  * The following is used by the dispadmin(8) command for scheduler
60  * administration and is not for general use.
61  */
62 typedef struct fssadmin {
63 	short	fss_quantum;
64 	short	fss_cmd;
65 } fssadmin_t;
66 
67 #define	FSS_GETADMIN	1
68 #define	FSS_SETADMIN	2
69 
70 #ifdef	__cplusplus
71 }
72 #endif
73 
74 #endif	/* _SYS_FSSPRIOCNTL_H */
75