nullnet.c File Reference

Null network device. More...

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

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
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   ) 

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

Definition at line 32 of file nullnet.c.

References ENODEV.

00032                                                             {
00033         return -ENODEV;
00034 };

static void null_close ( struct net_device *netdev  __unused  )  [static]

Definition at line 36 of file nullnet.c.

00036                                                               {
00037         /* Do nothing */
00038 };

static int null_transmit ( struct net_device *netdev  __unused,
struct io_buffer *iobuf  __unused 
) [static]

Definition at line 40 of file nullnet.c.

References ENODEV.

00041                                                               {
00042         return -ENODEV;
00043 };

static void null_poll ( struct net_device *netdev  __unused  )  [static]

Definition at line 45 of file nullnet.c.

00045                                                              {
00046         /* Do nothing */
00047 }

static void null_irq ( struct net_device *netdev  __unused,
int enable  __unused 
) [static]

Definition at line 49 of file nullnet.c.

00050                                              {
00051         /* Do nothing */
00052 }


Variable Documentation

Initial value:

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

Definition at line 54 of file nullnet.c.

Referenced by netdev_nullify().


Generated on Tue Apr 6 20:01:55 2010 for gPXE by  doxygen 1.5.7.1