/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_FX_H
#define _SYS_FX_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Fixed-priority dispatcher parameter table entry
*/
typedef struct fxdpent {
} fxdpent_t;
#ifdef _KERNEL
/*
* callbacks supplied by custom scheduler. In general, a change to quantum
*
* fx_exit - called when a thread exits. This also needs to free any storage
* for the fx_cookie_t.
*
* fx_callb_tick - called at every clock tick attributed to this thread
*
* fx_callb_preempt - called when a thread is being preempted or yielding
*
* fx_callb_stop/fx_callb_sleep - called when a thread stops running
*
* fx_callb_wakeup - called when a thread is again runnable
*/
typedef struct fx_callbacks {
int fx_callb_version;
/* priority setting */
/*
* Fixed-priority class specific thread structure
*/
typedef struct fxproc {
/* same as user priority */
/* the following are used only when we have callbacks registered */
/* has a callback */
/* has a callback */
/* was registered */
} fxproc_t;
/* flags */
/*
* Kernel version of fixed-priority class specific parameter structure
*/
typedef struct fxkparms {
int fx_tqntm;
} fxkparms_t;
/*
* Interface for partner private code. This is not a public interface.
*/
extern int fx_unregister_callbacks();
extern void *fx_get_mutex_cookie();
extern pri_t fx_get_maxpri();
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FX_H */