/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
#include <thread.h>
/*
* Get the current kthread_t pointer.
*/
_curthread(void)
{
}
/*
* Create a thread.
*
* thread_create() blocks for memory if necessary. It never fails.
*/
/* ARGSUSED */
void (*func)(),
void *arg,
int state,
{
void * (*thr_func)(void *);
int thr_flags = 0;
int rc;
switch (state) {
case TS_RUN:
case TS_ONPROC:
break;
case TS_STOPPED:
break;
default:
break;
}
if (rc != 0)
}
void
thread_exit(void)
{
}
void
{
}
void
{
}
/*ARGSUSED*/
void (*func)(),
void *arg,
{
kthread_t *t;
return (t);
}
void
zthread_exit(void)
{
thread_exit();
/* NOTREACHED */
}