#include <netdevice.h>
Data Fields | |
| int(* | open )(struct net_device *netdev) |
| Open network device. | |
| void(* | close )(struct net_device *netdev) |
| Close network device. | |
| int(* | transmit )(struct net_device *netdev, struct io_buffer *iobuf) |
| Transmit packet. | |
| void(* | poll )(struct net_device *netdev) |
| Poll for completed and received packets. | |
| void(* | irq )(struct net_device *netdev, int enable) |
| Enable or disable interrupts. | |
Definition at line 172 of file netdevice.h.
| int( * net_device_operations::open)(struct net_device *netdev) |
Open network device.
| netdev | Network device |
| rc | Return status code |
Referenced by myri10ge_pci_probe(), and netdev_open().
| void( * net_device_operations::close)(struct net_device *netdev) |
Close network device.
| netdev | Network device |
Referenced by netdev_close().
| int( * net_device_operations::transmit)(struct net_device *netdev, struct io_buffer *iobuf) |
Transmit packet.
| netdev | Network device | |
| iobuf | I/O buffer |
| rc | Return status code |
If this method returns success, the I/O buffer remains owned by the net device's TX queue, and the net device must eventually call netdev_tx_complete() to free the buffer. If this method returns failure, the I/O buffer is immediately released; the failure is interpreted as "failure to enqueue buffer".
This method is guaranteed to be called only when the device is open.
Referenced by netdev_tx().
| void( * net_device_operations::poll)(struct net_device *netdev) |
Poll for completed and received packets.
| netdev | Network device |
This method is guaranteed to be called only when the device is open.
Referenced by netdev_poll().
| void( * net_device_operations::irq)(struct net_device *netdev, int enable) |
Enable or disable interrupts.
| netdev | Network device | |
| enable | Interrupts should be enabled |
Referenced by netdev_irq().
1.5.7.1