/*
* 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.
* Copyright 2012 Joyent, Inc. All rights reserved.
*/
#ifndef _SYS_FSS_H
#define _SYS_FSS_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
struct cpupart;
struct zone;
/*
* Valid arg1's for fss_allocbuf()
*/
/*
* Valid arg2's for fss_allocbuf()
*/
typedef struct fssbuf {
int fssb_size;
void **fssb_list;
} fssbuf_t;
void *fss_allocbuf(int, int);
void fss_freebuf(fssbuf_t *, int);
/*
* Fair share scheduling class specific cpu partition structure
*/
typedef struct fsspset {
/* list of fssproj structures */
/* protected by fsspsets_lock */
/* all projects on this pset */
/* on the list */
} fsspset_t;
/*
* One of these structures is allocated to each project running within each
* active cpu partition.
*/
typedef struct fssproj {
/* protected by fssps_lock */
/* protected by fssps_lock */
/* protected by fssps_displock */
/* protected by fssps_displock */
/* protected by fssps_displock */
} fssproj_t;
/*
* Fair share scheduling class specific thread structure
*/
typedef struct fssproc {
} fssproc_t;
/*
* One of these structures is allocated to each zone running within
* each active cpu partition. This means that if a zone spans more
* than one cpu partition then it will have a few of these structures.
*/
typedef struct fsszone {
} fsszone_t;
/*
* fss_flags
*/
/* the dispatch queue if preempted */
/* restore priority from fss_scpri */
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FSS_H */