Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4074 → Rev 4075

/branches/network/uspace/srv/net/structures/packet/packet.c
250,5 → 250,15
}
}
 
packet_t pq_next( packet_t packet ){
if( ! packet_is_valid( packet )) return NULL;
return pm_find( packet->next );
}
 
packet_t pq_previous( packet_t packet ){
if( ! packet_is_valid( packet )) return NULL;
return pm_find( packet->previous );
}
 
/** @}
*/
/branches/network/uspace/srv/net/structures/packet/packet_client.h
193,9 → 193,10
*/
packet_t packet_get_1( int phone, size_t content );
 
/** Releases the packet.
* The packet is marked as free for use.
* The module should not use the packet after this point until it is received or obtained again.
/** Releases the packet queue.
* All packets in the queue are marked as free for use.
* The packet queue may be one packet only.
* The module should not use the packets after this point until they are received or obtained again.
* @param phone The packet server module phone. Input parameter.
* @param packet_id The packet identifier. Input parameter.
*/
/branches/network/uspace/srv/net/structures/packet/packet.h
129,6 → 129,22
*/
void pq_destroy( packet_t first, void ( * packet_release )( packet_t packet ));
 
/** Returns the next packet in the queue.
* @param packet The packet queue member. Input parameter.
* @returns The next packet in the queue.
* @returns NULL if there is no next packet.
* @returns NULL if the packet is not valid.
*/
packet_t pq_next( packet_t packet );
 
/** Returns the previous packet in the queue.
* @param packet The packet queue member. Input parameter.
* @returns The previous packet in the queue.
* @returns NULL if there is no previous packet.
* @returns NULL if the packet is not valid.
*/
packet_t pq_previous( packet_t packet );
 
#endif
 
/** @}