[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

if_nostat Kernel Service

Purpose

Zeroes statistical elements of the interface array in preparation for an attach operation.

Syntax

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

Parameter

ifp Specifies the ifnet structure associated with the interface array.

Description

The if_nostat kernel service zeroes the statistic elements of the ifnet structure for the interface. The ifp parameter specifies the ifnet structure associated with the interface that is being attached. The if_nostat service is called from the interface attach routine.

Execution Environment

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

Return Values

The if_nostat service has no return values.

Example

To zero statistical elements of the interface array in preparation for an attach operation, invoke the if_nostat kernel service as follows:

if_nostat(ifp);

Implementation Specifics

The if_nostat kernel service is part of Base Operating System (BOS) Runtime.

Related Information

Network Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]