Removes a network device from the network subsystem.
#include <sys/ndd.h>int ns_detach (nddp)
       struct ndd * nddp;
| Item | Description | 
|---|---|
| nddp | Specifies a pointer to an ndd structure describing the device to be detached. | 
The ns_detach service removes the ndd structure from the chain of available NS devices.
The following example illustrates the ns_detach network service:
ns_detach(nddp);| 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. |