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 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 /* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
28 /* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
29 /* All Rights Reserved */
31 #pragma ident "%Z%%M% %I% %E% SMI"
34 #include <sys/priocntl.h>
35 #include <sys/class.h>
38 #include <sys/rtpriocntl.h>
39 #include <sys/modctl.h>
42 * The purpose of this file is to allow a user to make their own
43 * rt_dptbl. The contents of this file should be included in the
44 * rt_dptbl(4) man page with proper instructions for making
45 * and replacing the RT_DPTBL.kmod in modules/sched. This was the
46 * only way to provide functionality equivalent to the mkboot/cunix
47 * method in SVr4 without having the utilities mkboot/cunix in
49 * It is recommended that the system calls be used to change the time
50 * quantums instead of re-building the module.
53 static struct modlmisc modlmisc
= {
54 &mod_miscops
, "realtime dispatch table"
57 static struct modlinkage modlinkage
= {
58 MODREV_1
, &modlmisc
, 0
64 return (mod_install(&modlinkage
));
68 _info(struct modinfo
*modinfop
)
70 return (mod_info(&modlinkage
, modinfop
));
73 #define RTGPPRIO0 100 /* Global priority for RT priority 0 */
75 rtdpent_t config_rt_dptbl
[] = {
77 /* prilevel Time quantum */
142 * Return the address of config_rt_dptbl
147 return (config_rt_dptbl
);