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

ns_detach Network Service

Purpose

Removes a network device from the network subsystem.

Syntax

#include <sys/ndd.h>
int ns_detach (nddp)
       struct ndd *nddp;

Parameters

nddp Specifies a pointer to an ndd structure describing the device to be detached.

Description

The ns_detach service removes the ndd structure from the chain of available NS devices.

Examples

The following example illustrates the ns_detach network service:

ns_detach(nddp);

Return Values

0 Indicates the operation was successful.
ENOENT Indicates the specified ndd structure was not found.
EBUSY Indicates the network device driver (NDD) is currently in use.

Related Information

The ns_attach network service.


[ Previous | Next | Contents | Home | Search ]