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

Technical Reference: Kernel and Subsystems, Volume 1

net_error Kernel Service

Purpose

Handles errors for communication network interface drivers.

Syntax

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


net_error ( ifp, error_code, netfp)
struct ifnet *ifp;
int error_code;
struct file *netfp;

Parameters

error_code Specifies the error code listed in the /usr/include/sys/comio.h file.
ifp Specifies the address of the ifnet structure for the device with an error.
netfp Specifies the file pointer for the device with an error.

Description

The net_error kernel service provides generic error handling for communications network interface (if) drivers. Network interface (if) kernel extensions call this service to trace errors and, in some instances, perform error recovery.

Errors traced include those:

Execution Environment

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

Return Values

The net_error service has no return values.

Related Information

The net_attach kernel service, net_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 ]