ns_free Network Service

Purpose

Relinquishes access to a network device.

Syntax

#include <sys/ndd.h>

void ns_free (nddp)
       struct ndd * nddp;

Parameters

Item Description
nddp Specifies the ndd structure of the network device that is to be freed from use.

Description

The ns_free network service relinquishes access to a network device. The ns_free network service also decrements the reference count for the specified ndd structure. If the reference count becomes 0, the ns_free network service calls the ndd_close subroutine specified in the ndd structure.

Examples

The following example illustrates the ns_free network service:

struct ndd *nddp
ns_free(nddp); 

Files

Item Description
net/cdli.c