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;
struct ndd * nddp;
Parameters
Item | Description |
---|---|
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
Item | Description |
---|---|
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. |