My Kernel v0.1.0
ethernet_device Struct Reference

An ethernet device. More...

#include <ethernet.h>

Public Member Functions

 LLIST_NODE (this)
 The netdevice's interface.
 

Data Fields

struct ethernet_operationsops
 The underlying generic device.
 
mac_address_t mac
 The ethernet operation vtable.
 
size_t mtu
 The device's mac address.
 
uint32_t capabilities
 Maximum transmittable packet size. More...
 
struct workerworker
 Node inside the linked list of registered devices.
 

Detailed Description

Ethernet devices come with a private data area, whose size is specified by the caller when allocating a new device. This area is destined to contain per-device specific data, generally used to hold the device's state so that it can be used by the driver's functions. This private area is located right after the ethernet_device structure.

Field Documentation

◆ capabilities

uint32_t ethernet_device::capabilities

Device capability bitfields

See also
ethernet_device_capabilities

The documentation for this struct was generated from the following file: