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

Item Description
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.