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

Technical Reference: Kernel and Subsystems, Volume 1

if_detach Kernel Service

Purpose

Deletes a network interface from the network interface list.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <net/if.h>


if_detach ( ifp)
struct ifnet *ifp;

Parameter

ifp Points to the interface network (ifnet) structure that describes the network interface to delete.

Description

The if_detach kernel service deletes a Network Interface Driver (NID) entry from the network interface list.

Execution Environment

The if_detach kernel service can be called from either the process or interrupt environment.

Return Values

0 Indicates that the network interface was successfully deleted.
ENOENT Indicates that the if_detach kernel service could not find the NID in the network interface list.

Related Information

The if_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 ]