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

Technical Reference: Kernel and Subsystems, Volume 1

if_attach Kernel Service

Purpose

Adds a network interface to the network interface list.

Syntax

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


if_attach ( ifp)
struct ifnet *ifp;

Parameter

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

Description

The if_attach kernel service registers a Network Interface Driver (NID) in the network interface list.

Execution Environment

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

Return Values

The if_attach kernel service has no return values.

Related Information

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