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 #pragma ident "%Z%%M% %I% %E% SMI"
30 #include <sys/priocntl.h>
31 #include <sys/class.h>
34 #include <sys/fxpriocntl.h>
35 #include <sys/modctl.h>
38 * The purpose of this file is to allow a user to make their own
39 * fx_dptbl. The contents of this file should be included in the
40 * fx_dptbl(4) man page with proper instructions for making
41 * and replacing the FX_DPTBL in usr/kernel/sched.
42 * It is recommended that the system calls be used to change the time
43 * quantums instead of re-building the module.
46 static struct modlmisc modlmisc
= {
47 &mod_miscops
, "Fixed priority dispatch table"
50 static struct modlinkage modlinkage
= {
51 MODREV_1
, &modlmisc
, 0
57 return (mod_install(&modlinkage
));
61 _info(struct modinfo
*modinfop
)
63 return (mod_info(&modlinkage
, modinfop
));
66 #define FXGPUP0 0 /* Global priority for FX user priority 0 */
70 fxdpent_t config_fx_dptbl
[] = {
137 pri_t config_fx_maxumdpri
= sizeof (config_fx_dptbl
) / sizeof (fxdpent_t
) - 1;
140 * Return the address of config_fx_dptbl
145 return (config_fx_dptbl
);
150 * Return the address of fx_maxumdpri
156 * the config_fx_dptbl table.
158 return (config_fx_maxumdpri
);