[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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.

Related Information

The net_wakeup kernel service, sleep kernel service.

Network Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]