iPXE
Functions | Variables
nullnet.c File Reference

Null network device. More...

#include <stdint.h>
#include <errno.h>
#include <ipxe/iobuf.h>
#include <ipxe/netdevice.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static int null_open (struct net_device *netdev __unused)
static void null_close (struct net_device *netdev __unused)
static int null_transmit (struct net_device *netdev __unused, struct io_buffer *iobuf __unused)
static void null_poll (struct net_device *netdev __unused)
static void null_irq (struct net_device *netdev __unused, int enable __unused)

Variables

struct net_device_operations null_netdev_operations

Detailed Description

Null network device.

Definition in file nullnet.c.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )
static int null_open ( struct net_device *netdev  __unused) [static]

Definition at line 37 of file nullnet.c.

References ENODEV.

                                                            {
        return -ENODEV;
};
static void null_close ( struct net_device *netdev  __unused) [static]

Definition at line 41 of file nullnet.c.

                                                              {
        /* Do nothing */
};
static int null_transmit ( struct net_device *netdev  __unused,
struct io_buffer *iobuf  __unused 
) [static]

Definition at line 45 of file nullnet.c.

References ENODEV.

                                                              {
        return -ENODEV;
};
static void null_poll ( struct net_device *netdev  __unused) [static]

Definition at line 50 of file nullnet.c.

                                                             {
        /* Do nothing */
}
static void null_irq ( struct net_device *netdev  __unused,
int enable  __unused 
) [static]

Definition at line 54 of file nullnet.c.

                                             {
        /* Do nothing */
}

Variable Documentation

Initial value:
 {
        .open           = null_open,
        .close          = null_close,
        .transmit       = null_transmit,
        .poll           = null_poll,
        .irq            = null_irq,
}

Definition at line 59 of file nullnet.c.

Referenced by netdev_nullify().