Subversion Repositories HelenOS

Rev

Rev 4192 | Rev 4395 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4192 Rev 4351
Line 164... Line 164...
164
 *  @param packet The packet reference. Output parameter.
164
 *  @param packet The packet reference. Output parameter.
165
 *  @param packet_id The packet identifier. Input parameter.
165
 *  @param packet_id The packet identifier. Input parameter.
166
 *  @returns EOK on success.
166
 *  @returns EOK on success.
167
 *  @returns EINVAL if the packet parameter is NULL.
167
 *  @returns EINVAL if the packet parameter is NULL.
168
 *  @returns Other error codes as defined for the NET_PACKET_GET_SIZE message.
168
 *  @returns Other error codes as defined for the NET_PACKET_GET_SIZE message.
169
 *  \todo errors as packet_return()
169
 *  @returns Other error codes as defined for the packet_return() function.
170
 */
170
 */
171
int packet_translate( int phone, packet_ref packet, packet_id_t packet_id );
171
int packet_translate( int phone, packet_ref packet, packet_id_t packet_id );
172
 
172
 
173
/** Obtains the packet of the given dimensions.
173
/** Obtains the packet of the given dimensions.
174
 *  Contacts the packet server to return the appropriate packet.
174
 *  Contacts the packet server to return the appropriate packet.
Line 177... Line 177...
177
 *  @param max_prefix The maximal prefix length in bytes. Input parameter.
177
 *  @param max_prefix The maximal prefix length in bytes. Input parameter.
178
 *  @param max_content The maximal content length in bytes. Input parameter.
178
 *  @param max_content The maximal content length in bytes. Input parameter.
179
 *  @param max_suffix The maximal suffix length in bytes. Input parameter.
179
 *  @param max_suffix The maximal suffix length in bytes. Input parameter.
180
 *  @returns The packet reference.
180
 *  @returns The packet reference.
181
 *  @returns NULL on error.
181
 *  @returns NULL on error.
182
 *  \todo error as NET_PACKET_CREATE_4, packet_return()
-
 
183
 */
182
 */
184
packet_t packet_get_4( int phone, size_t max_content, size_t addr_len, size_t max_prefix, size_t max_suffix );
183
packet_t packet_get_4( int phone, size_t max_content, size_t addr_len, size_t max_prefix, size_t max_suffix );
185
 
184
 
186
/** Obtains the packet of the given content size.
185
/** Obtains the packet of the given content size.
187
 *  Contacts the packet server to return the appropriate packet.
186
 *  Contacts the packet server to return the appropriate packet.
188
 *  @param phone The packet server module phone. Input parameter.
187
 *  @param phone The packet server module phone. Input parameter.
189
 *  @param content The maximal content length in bytes. Input parameter.
188
 *  @param content The maximal content length in bytes. Input parameter.
190
 *  @returns The packet reference.
189
 *  @returns The packet reference.
191
 *  @returns NULL on error.
190
 *  @returns NULL on error.
192
 *  \todo error as NET_PACKET_CREATE_1, packet_return()
-
 
193
 */
191
 */
194
packet_t packet_get_1( int phone, size_t content );
192
packet_t packet_get_1( int phone, size_t content );
195
 
193
 
196
/** Releases the packet queue.
194
/** Releases the packet queue.
197
 *  All packets in the queue are marked as free for use.
195
 *  All packets in the queue are marked as free for use.