Changeset 1e2e0c1e in mainline for uspace/srv/net/structures/packet/packet.h
- Timestamp:
- 2010-02-17T21:15:03Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e6b7b198
- Parents:
- bfd7aac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/structures/packet/packet.h
rbfd7aac r1e2e0c1e 86 86 * The queue is sorted in the ascending order. 87 87 * The packet is inserted right before the packets of the same order value. 88 * @param[in ] first The first packet of the queue. May be NULL.88 * @param[in,out] first The first packet of the queue. Sets the first packet of the queue. The original first packet may be shifted by the new packet. 89 89 * @param[in] packet The packet to be added. 90 90 * @param[in] order The packet order value. 91 91 * @param[in] metric The metric value of the packet. 92 * @returns The first packet of the queue. The original first packet may be shifted by the new packet. 93 * @returns NULL if the packet is not valid. 92 * @returns EOK on success. 93 * @returns EINVAL if the first parameter is NULL. 94 * @returns EINVAL if the packet is not valid. 94 95 */ 95 packet_t pq_add( packet_tfirst, packet_t packet, size_t order, size_t metric );96 int pq_add( packet_t * first, packet_t packet, size_t order, size_t metric ); 96 97 97 98 /** Finds the packet with the given order.
Note:
See TracChangeset
for help on using the changeset viewer.