DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

kthread_wait(D3)


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).

Usage

Context and synchronization

User or blockable context.

Hardware applicability

All

Version applicability

ddi: 8, 8mp

References

kthread_exit(D3), kthread_spawn(D3)

``Kernel threads'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005