Sleeps on the specified wait channel.
#include <sys/types.h> #include <sys/errno.h> #include <sys/pri.h>
net_sleep (chan, flags) int chan; int flags;
chan | Specifies the wait channel to sleep upon. |
flags | Sleep flags described in the sleep kernel service. |
The net_sleep kernel service puts the caller to sleep waiting on the specified wait channel. If the caller holds the network lock, the net_sleep kernel service releases the lock before sleeping and reacquires the lock when the caller is awakened.
The net_sleep kernel service can be called from the process environment only.
0 | Indicates that the sleeping process was not awakened by a signal. |
1 | Indicates that the sleeper was awakened by a signal. |
The net_sleep kernel service is part of Base Operating System (BOS) Runtime.
The net_wakeup kernel service, sleep kernel service.
Network Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.