kthread_wait --
wait for a specified thread to exit
Synopsis
#include <sys/types.h>
#include <sys/ddi.h>
int kthread_wait(kthread_id_t idp);
Description
kthread_wait( )
waits for a specified thread to exit.
This thread must have been created by the
kthread_spawn(D3)
function.
Arguments
idp
Identifier of the thread for which
the driver is waiting.
This must match the value returned through
the idp argument supplied to the
kthread_spawn(D3)
function.
Return values
The
kthread_wait( )
function returns 0 for success, or the
appropriate non-zero error number from
errnos(D5).