netif_skel.c File Reference

Network interface module skeleton implementation. More...

#include <async.h>
#include <mem.h>
#include <fibril_synch.h>
#include <stdio.h>
#include <ipc/services.h>
#include <ipc/netif.h>
#include <errno.h>
#include <generic.h>
#include <net/modules.h>
#include <net/packet.h>
#include <packet_client.h>
#include <packet_remote.h>
#include <adt/measured_strings.h>
#include <net/device.h>
#include <netif_skel.h>
#include <nil_remote.h>

Go to the source code of this file.

Functions

int find_device (device_id_t device_id, netif_device_t **device)
 Find the device specific data.
static void netif_client_connection (ipc_callid_t iid, ipc_call_t *icall)
 Default fibril for new module connections.
static int netif_module_message (ipc_callid_t callid, ipc_call_t *call, ipc_call_t *answer, size_t *count)
 Process the netif module messages.
int netif_module_start (void)
 Start the network interface module.
packet_tnetif_packet_get_1 (size_t content)
 Allocate new packet to handle the given content size.
void netif_pq_release (packet_id_t packet_id)
 Release the given packet.
static int netif_probe_req_local (int netif_phone, device_id_t device_id, int irq, void *io)
 Probe the existence of the device.
static int netif_send_msg_local (int netif_phone, device_id_t device_id, packet_t *packet, services_t sender)
 Send the packet queue.
static int netif_start_req_local (int netif_phone, device_id_t device_id)
 Start the device.
static int netif_stop_req_local (int netif_phone, device_id_t device_id)
 Stop the device.
void null_device_stats (device_stats_t *stats)
 Clear the usage statistics.
static int register_message (device_id_t device_id, int phone)
 Register the device notification receiver,.

Variables

netif_globals_t netif_globals
 Network interface global data.


Detailed Description

Network interface module skeleton implementation.

See also:
netif_skel.h

Definition in file netif_skel.c.


Generated on Thu Jun 2 07:45:54 2011 for HelenOS/USB by  doxygen 1.4.7