Changeset dd5046dd in mainline
- Timestamp:
- 2010-11-20T17:10:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7e1f9b7, da9f13f3
- Parents:
- 46d4d9f
- Location:
- uspace/lib/packet
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/packet/generic/packet_server.c
r46d4d9f rdd5046dd 36 36 37 37 #include <packet_server.h> 38 #include <packet_local.h>39 38 40 39 #include <align.h> … … 102 101 .count = 0 103 102 }; 104 105 int packet_translate_local(int phone, packet_t **packet, packet_id_t packet_id)106 {107 if (!packet)108 return EINVAL;109 110 *packet = pm_find(packet_id);111 return (*packet) ? EOK : ENOENT;112 }113 103 114 104 /** Clears and initializes the packet according to the given dimensions. … … 241 231 } 242 232 243 packet_t *packet_get_4_local(int phone, size_t max_content, size_t addr_len,244 size_t max_prefix, size_t max_suffix)245 {246 return packet_get_local(addr_len, max_prefix, max_content, max_suffix);247 }248 249 packet_t *packet_get_1_local(int phone, size_t content)250 {251 return packet_get_local(DEFAULT_ADDR_LEN, DEFAULT_PREFIX, content,252 DEFAULT_SUFFIX);253 }254 255 233 /** Release the packet and returns it to the appropriate free packet queue. 256 234 * … … 294 272 295 273 return EOK; 296 }297 298 void pq_release_local(int phone, packet_id_t packet_id)299 {300 (void) packet_release_wrapper(packet_id);301 274 } 302 275
Note:
See TracChangeset
for help on using the changeset viewer.