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

ns_free Network Service

Purpose

Relinquishes access to a network device.

Syntax

#include <sys/ndd.h>
void ns_free (nddp)
       struct ndd *nddp;

Parameters

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

net/cdli.c

Related Information

The ns_alloc network service.


[ Previous | Next | Contents | Home | Search ]