Network interface module skeleton. More...
#include <async.h>#include <fibril_synch.h>#include <ipc/ipc.h>#include "../err.h"#include "../include/device.h"#include "../structures/packet/packet.h"

Data Structures | |
| struct | netif_device |
| Network interface device specific data. More... | |
| struct | netif_globals |
| Network interface module skeleton global data. More... | |
Typedefs | |
| typedef struct netif_globals | netif_globals_t |
| Network interface module skeleton global data. | |
| typedef struct netif_device | device_t |
| Type definition of the device specific data. | |
| typedef device_t * | device_ref |
| Type definition of the device specific data pointer. | |
Functions | |
| DEVICE_MAP_DECLARE (device_map, device_t) | |
| Device map. | |
| int | find_device (device_id_t device_id, device_ref *device) |
| Finds the device specific data. | |
| void | null_device_stats (device_stats_ref stats) |
| Clears the usage statistics. | |
| void | netif_pq_release (packet_id_t packet_id) |
| Releases the given packet. | |
| packet_t | netif_packet_get_1 (size_t content) |
| Allocates new packet to handle the given content size. | |
| int | netif_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, int *answer_count) |
| Processes the netif module messages. | |
| int | netif_init_module (async_client_conn_t client_connection) |
| Initializes the netif module. | |
| int | netif_run_module (void) |
| Starts and maintains the netif module until terminated. | |
Network interface module skeleton.
The skeleton has to be part of each network interface module. The skeleton can be also part of the module bundled with the network interface layer.
1.6.1