packet.h File Reference

Packet map and queue. More...

Go to the source code of this file.

Data Structures

struct  packet_dimension
 Packet dimension. More...

Packet management system interface

int pm_add (packet_t *packet)
 Adds the packet mapping.
void pm_destroy (void)
 Releases the packet map.
packet_tpm_find (packet_id_t packet_id)
 Finds the packet mapping.
int pm_init (void)
 Initializes the packet map.
int pq_add (packet_t **first, packet_t *packet, size_t order, size_t metric)
 Add packet to the sorted queue.
packet_tpq_detach (packet_t *packet)
 Detach the packet from the queue.
packet_tpq_find (packet_t *packet, size_t order)
 Finds the packet with the given order.
int pq_get_order (packet_t *packet, size_t *order, size_t *metric)
 Sets the packet order and metric attributes.
int pq_insert_after (packet_t *packet, packet_t *new_packet)
 Inserts packet after the given one.
packet_tpq_next (packet_t *packet)
 Returns the next packet in the queue.
packet_tpq_previous (packet_t *packet)
 Returns the previous packet in the queue.
int pq_set_order (packet_t *packet, size_t order, size_t metric)
 Sets the packet order and metric attributes.

Typedefs

typedef packet_dimension packet_dimension_t
 Type definition of the packet dimension.
typedef int packet_id_t
 Packet identifier type.
typedef packet packet_t
 Type definition of the packet.


Detailed Description

Packet map and queue.

Definition in file packet.h.


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