net_sleep Kernel Service

Purpose

Sleeps on the specified wait channel.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <sys/pri.h>

net_sleep ( chan,  flags)
int chan;
int flags;

Parameters

Item Description
chan Specifies the wait channel to sleep upon.
flags Sleep flags described in the sleep kernel service.

Description

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.

Execution Environment

The net_sleep kernel service can be called from the process environment only.

Return Values

Item Description
0 Indicates that the sleeping process was not awakened by a signal.
1 Indicates that the sleeper was awakened by a signal.