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

Technical Reference: Kernel and Subsystems, Volume 1

if_down Kernel Service

Purpose

Marks an interface as down.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <net/if.h>
void if_down ( ifp)
register struct ifnet *ifp;

Parameter

ifp Specifies the ifnet structure associated with the interface array.

Description

The if_down kernel service:

The ifp parameter specifies the ifnet structure associated with the interface as the structure to be marked as down.

Execution Environment

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

Return Values

The if_down service has no return values.

Example

To mark an interface as down, invoke the if_down kernel service as follows:

if_down(ifp);

Related Information

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 ]