miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
netdev.h File Reference
#include <miniOS/types.h>
Include dependency graph for netdev.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  netdev_ops_t
struct  net_device

Macros

#define NET_MAX_DEVICES   4
#define NET_MAX_FRAME_SIZE   1518

Typedefs

typedef void(* net_rx_handler_t) (struct net_device *dev, const void *frame, size_t frame_len, void *ctx)
typedef struct net_device netdev_t
typedef netdev_t net_device_t

Functions

void net_init (void)
int netdev_register (netdev_t *dev)
netdev_tnetdev_first (void)
void netdev_poll_all (void)

Macro Definition Documentation

◆ NET_MAX_DEVICES

#define NET_MAX_DEVICES   4

◆ NET_MAX_FRAME_SIZE

#define NET_MAX_FRAME_SIZE   1518

Typedef Documentation

◆ net_device_t

◆ net_rx_handler_t

typedef void(* net_rx_handler_t) (struct net_device *dev, const void *frame, size_t frame_len, void *ctx)

◆ netdev_t

typedef struct net_device netdev_t

Function Documentation

◆ net_init()

void net_init ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ netdev_first()

netdev_t * netdev_first ( void )
Here is the caller graph for this function:

◆ netdev_poll_all()

void netdev_poll_all ( void )
Here is the caller graph for this function:

◆ netdev_register()

int netdev_register ( netdev_t * dev)
Here is the call graph for this function:
Here is the caller graph for this function: