Changeset ca2d142 in mainline for uspace/srv/net/structures/packet/packet.h
- Timestamp:
- 2010-02-18T10:00:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e326edc
- Parents:
- b8da2a3 (diff), 91478aa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/structures/packet/packet.h
rb8da2a3 rca2d142 53 53 typedef packet_t * packet_ref; 54 54 55 /** Type definition of the packet dimension. 56 * @see packet_dimension 57 */ 58 typedef struct packet_dimension packet_dimension_t; 59 60 /** Type definition of the packet dimension pointer. 61 * @see packet_dimension 62 */ 63 typedef packet_dimension_t * packet_dimension_ref; 64 65 /** Packet dimension. 66 */ 67 struct packet_dimension{ 68 /** Reserved packet prefix length. 69 */ 70 size_t prefix; 71 /** Maximal packet content length. 72 */ 73 size_t content; 74 /** Reserved packet suffix length. 75 */ 76 size_t suffix; 77 /** Maximal packet address length. 78 */ 79 size_t addr_len; 80 }; 81 55 82 /** @name Packet management system interface 56 83 */ … … 86 113 * The queue is sorted in the ascending order. 87 114 * 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.115 * @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 116 * @param[in] packet The packet to be added. 90 117 * @param[in] order The packet order value. 91 118 * @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. 119 * @returns EOK on success. 120 * @returns EINVAL if the first parameter is NULL. 121 * @returns EINVAL if the packet is not valid. 94 122 */ 95 packet_t pq_add( packet_tfirst, packet_t packet, size_t order, size_t metric );123 int pq_add( packet_t * first, packet_t packet, size_t order, size_t metric ); 96 124 97 125 /** Finds the packet with the given order.
Note:
See TracChangeset
for help on using the changeset viewer.