del_netisr Kernel Service
Purpose
Deletes a network software interrupt service routine from the Network Interrupt table.
Syntax
#include <sys/types.h>
#include <sys/errno.h>
#include <net/netisr.h>
int del_netisr ( soft_intr_level)
u_short soft_intr_level;Parameter
| Item | Description |
|---|---|
| soft_intr_level | Specifies the software interrupt level to delete. This parameter must be greater than or
equal to 0 and less than NETISR_MAX. Refer to netisr.h for the
range of values of soft_intr_level that are already in use. Also, other kernel
extensions that are not AIX and that use
network ISRs currently running on the system can make use of additional values that are not
mentioned in netisr.h. |
Description
The del_netisr kernel service deletes the network software interrupt service routine specified by the soft_intr_level parameter from the Network Software Interrupt table.
Execution Environment
The del_netisr kernel service can be called from either the process or interrupt environment.
Return Values
| Item | Description |
|---|---|
| 0 | Indicates that the software interrupt service was successfully deleted. |
| ENOENT | Indicates that the software interrupt service was not found in the Network Software Interrupt table. |
Example
To delete a software interrupt service from the Network Software Interrupt table, invoke the kernel service as follows:
del_netisr(NETISR_IP);
In this example, the software interrupt routine to be deleted is
NETISR_IP.