/*
* 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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "iscsi_thread.h"
static void iscsi_threads_entry(void *arg);
/*
* iscsi_thread_create - Creates the needed resources to handle a thread
*/
{
TASKQ_DEFAULTPRI, 0);
} else {
}
}
return (thread);
}
/*
* iscsi_thread_destroy - Releases the needed resources to handle a thread
*/
void
)
{
/* A kill signal is sent first. */
}
break;
/* Switch the state and wait for the thread to exit. */
break;
default:
ASSERT(0);
break;
}
}
/*
* iscsi_thread_start - Starts the thread given as an entry parameter
*/
)
{
}
/* FALLTHRU */
/*
* The dispatch succeeded.
*/
}
break;
default:
ASSERT(0);
break;
}
return (ret);
}
/*
* iscsi_thread_stop -
*/
)
{
}
break;
break;
default:
ASSERT(0);
break;
}
return (ret);
}
/*
* iscsi_thread_send_kill -
*/
void
)
{
}
break;
default:
ASSERT(0);
break;
}
}
/*
* iscsi_thread_send_wakeup -
*/
)
{
}
break;
default:
break;
}
return (ret);
}
/*
* iscsi_thread_check_signals -
*/
)
{
/* Acquire the mutex before anychecking. */
return (bitmap);
}
/*
* iscsi_thread_wait -
*/
int
)
{
/* Acquire the mutex before anychecking. */
/* Check the signals. */
goto signal_kill;
goto signal_wakeup;
} else if (timeout == 0) {
goto iscsi_thread_sleep_exit;
}
if (timeout == -1) {
} else {
}
/* Check the signals. */
goto signal_kill;
goto signal_wakeup;
}
return (rtn);
return (0);
return (1);
}
/*
* iscsi_threads_entry - Common entry point for all threads
*/
static
void
void *arg
)
{
}