/branches/network/uspace/srv/net/structures/packet/packet_client.h |
---|
46,6 → 46,10 |
#include "packet.h" |
/** @name Packet client interface |
*/ |
/*@{*/ |
/** Allocates the specified type right before the actual packet content and returns its pointer. |
* The wrapper of the packet_prepend() function. |
* @param packet The packet to be used. Input parameter. |
199,6 → 203,8 |
*/ |
void pq_release( int phone, packet_id_t packet_id ); |
/*@}*/ |
#endif |
/** @} |
/branches/network/uspace/srv/net/structures/packet/packet.h |
---|
69,6 → 69,10 |
PACKET_OTHERHOST |
}; |
/** @name Packet management system interface |
*/ |
/*@{*/ |
/** Finds the packet mapping. |
* @param packet_id The packet identifier to be found. Input parameter. |
* @returns The found packet reference. |
153,6 → 157,8 |
*/ |
packet_t pq_previous( packet_t packet ); |
/*@}*/ |
#endif |
/** @} |
/branches/network/uspace/srv/net/structures/packet/packet_server.c |
---|
91,6 → 91,10 |
0 |
}; |
/** @name Packet server support functions |
*/ |
/*@{*/ |
/** Returns the packet of dimensions at least as given. |
* Tries to reuse free packets first. |
* Creates a new packet aligned to the memory page size if none available. |
148,6 → 152,8 |
*/ |
int packet_reply( const packet_t packet ); |
/*@}*/ |
int packet_translate( int phone, packet_ref packet, packet_id_t packet_id ){ |
if( ! packet ) return EINVAL; |
* packet = pm_find( packet_id ); |