[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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.

Related Information

The fp_close kernel service, net_attach kernel service.

Network Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]