[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

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

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

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

Implementation Specifics

The net_sleep kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The net_wakeup kernel service, sleep kernel service.

Network Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]