Sleeps on the specified wait channel.
Item | Description |
---|---|
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.
Item | Description |
---|---|
0 | Indicates that the sleeping process was not awakened by a signal. |
1 | Indicates that the sleeper was awakened by a signal. |