1700 Add SCSI UNMAP support
[unleashed.git] / usr / src / uts / common / sys / rtpriocntl.h
blob6c9d824944f8aaa4c4b09d9030bf9bf4969a7638
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
23 * Copyright (c) 1997-2001 by Sun Microsystems, Inc.
24 * All rights reserved.
27 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
28 /* All Rights Reserved */
31 #ifndef _SYS_RTPRIOCNTL_H
32 #define _SYS_RTPRIOCNTL_H
34 #include <sys/types.h>
35 #include <sys/thread.h>
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
42 * Real-time class specific structures for the priocntl system call.
45 typedef struct rtparms {
46 pri_t rt_pri; /* real-time priority */
47 uint_t rt_tqsecs; /* seconds in time quantum */
48 int rt_tqnsecs; /* additional nanosecs in time quant */
49 } rtparms_t;
52 typedef struct rtinfo {
53 pri_t rt_maxpri; /* maximum configured real-time priority */
54 } rtinfo_t;
57 #define RT_NOCHANGE -1
58 #define RT_TQINF -2
59 #define RT_TQDEF -3
62 * Real-time class specific keys for the priocntl system call varargs interface.
64 #define RT_KY_PRI 1 /* real-time priority */
65 #define RT_KY_TQSECS 2 /* seconds in time quantum */
66 #define RT_KY_TQNSECS 3 /* nanoseconds in time quantum */
67 #define RT_KY_TQSIG 4 /* real-time time quantum signal */
70 * The following is used by the dispadmin(1M) command for
71 * scheduler administration and is not for general use.
74 #ifdef _SYSCALL32
75 /* Data structure for ILP32 clients */
76 typedef struct rtadmin32 {
77 caddr32_t rt_dpents;
78 int16_t rt_ndpents;
79 int16_t rt_cmd;
80 } rtadmin32_t;
81 #endif /* _SYSCALL32 */
83 typedef struct rtadmin {
84 struct rtdpent *rt_dpents;
85 short rt_ndpents;
86 short rt_cmd;
87 } rtadmin_t;
89 #define RT_GETDPSIZE 1
90 #define RT_GETDPTBL 2
91 #define RT_SETDPTBL 3
93 #ifdef __cplusplus
95 #endif
97 #endif /* _SYS_RTPRIOCNTL_H */