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

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

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