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

net_detach Kernel Service

Purpose

Closes a communications I/O device handler.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <aixif/net_if.h>
int net_detach (netfp)
struct file   *netfp;

Parameter

netfp Points to an open file structure obtained from the net_attach kernel service.

Description

The net_detach kernel service closes the device handler associated with the file pointer specified by the netfp parameter.

Execution Environment

The net_detach kernel service can be called from the process environment only.

Return Values

The net_detach service returns the value it obtains from the fp_close service.

Implementation Specifics

The net_detach kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The fp_close kernel service, net_attach kernel service.

Network Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]