This driver reads data from the network and builds messages that are given to the upper layer on the "interrupt stack".
#include "common.h"
#include "sockets.h"
#include "pmsg.h"
#include "rx.h"
#include "rx_link.h"
#include "rxbuf.h"
#include "bsched.h"
#include "lib/walloc.h"
#include "lib/override.h"
Data Structures | |
struct | attr |
Private attributes for the decompressing layer. More... | |
Functions | |
RCSID ("$Id:rx_link.c, v 1.13 2005/11/30 16:43:41 rmanfredi Exp $") | |
void | is_readable (gpointer data, gint unused_source, inputevt_cond_t cond) |
Invoked when the input file descriptor has more data available. | |
gpointer | rx_link_init (rxdrv_t *rx, gconstpointer args) |
Initialize the driver. | |
void | rx_link_destroy (rxdrv_t *rx) |
Get rid of the driver's private data. | |
void | rx_link_recv (rxdrv_t *rx, pmsg_t *mb) |
Inject data into driver. | |
void | rx_link_enable (rxdrv_t *rx) |
Enable reception of data. | |
void | rx_link_disable (rxdrv_t *rx) |
Disable reception of data. | |
bio_source * | rx_link_bio_source (rxdrv_t *rx) |
const struct rxdrv_ops * | rx_link_get_ops (void) |
Variables | |
const struct rxdrv_ops | rx_link_ops |
|
Invoked when the input file descriptor has more data available.
|
|
|
|
|
|
Get rid of the driver's private data.
|
|
Disable reception of data.
|
|
Enable reception of data.
|
|
|
|
Initialize the driver. Always succeeds, so never returns NULL. |
|
Inject data into driver. Since we normally read from the network, we don't have to process those data and can forward them directly to the upper layer. |
|
Initial value: { rx_link_init, rx_link_destroy, rx_link_recv, rx_link_enable, rx_link_disable, rx_link_bio_source, } |