/*
* 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
*/
/*
*/
#ifndef _MTMALLOC_IMPL_H
#define _MTMALLOC_IMPL_H
/*
* Various data structures that define the guts of the mt malloc
* library.
*/
#include <synch.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct cache {
/* volatile needed to support atomic operations */
} cache_t;
typedef struct oversize {
} oversize_t;
typedef struct cachespaceblock {
typedef struct cache_head {
} cache_head_t;
/* used to avoid false sharing, should be power-of-2 >= cache coherency size */
sizeof (cache_head_t *))
typedef struct percpu {
} percpu_t;
/*
* Oversize bit definitions: 3 bits to represent the oversize for
* head fragment, data itself, and tail fragment.
* If the head fragment is oversize, the first bit is on.
* If the data itself is oversize, the second bit is on.
* If the tail fragment is oversize, then the third bit is on.
*/
#ifdef __cplusplus
}
#endif
#endif /* _MTMALLOC_IMPL_H */