docs/how-to-build.md: use proper markup for directory names
[unleashed/tickless.git] / include / sys / tspriocntl.h
blob1c8c35a5d64e7e3d099b91a836bc88291182d339
1 /*
2 * CDDL HEADER START
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.
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]
20 * CDDL HEADER END
22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
23 /* All Rights Reserved */
27 * Copyright (c) 2001 by Sun Microsystems, Inc.
28 * All rights reserved.
31 #ifndef _SYS_TSPRIOCNTL_H
32 #define _SYS_TSPRIOCNTL_H
34 #include <sys/types.h>
35 #include <sys/thread.h>
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
42 * Time-sharing class specific structures for the priocntl system call.
45 typedef struct tsparms {
46 pri_t ts_uprilim; /* user priority limit */
47 pri_t ts_upri; /* user priority */
48 } tsparms_t;
51 typedef struct tsinfo {
52 pri_t ts_maxupri; /* configured limits of user priority range */
53 } tsinfo_t;
55 #define TS_NOCHANGE -32768
58 * Time-sharing class specific keys for the priocntl system call
59 * varargs interface.
61 #define TS_KY_UPRILIM 1 /* user priority limit */
62 #define TS_KY_UPRI 2 /* user priority */
65 * The following is used by the dispadmin(1M) command for
66 * scheduler administration and is not for general use.
69 #ifdef _SYSCALL32
70 /* Data structure for ILP32 clients */
71 typedef struct tsadmin32 {
72 caddr32_t ts_dpents;
73 int16_t ts_ndpents;
74 int16_t ts_cmd;
75 } tsadmin32_t;
76 #endif /* _SYSCALL32 */
78 typedef struct tsadmin {
79 struct tsdpent *ts_dpents;
80 short ts_ndpents;
81 short ts_cmd;
82 } tsadmin_t;
84 #define TS_GETDPSIZE 1
85 #define TS_GETDPTBL 2
86 #define TS_SETDPTBL 3
88 #ifdef __cplusplus
90 #endif
92 #endif /* _SYS_TSPRIOCNTL_H */