Changeset 41811af in mainline for uspace/lib/net/generic/packet_remote.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (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/lib/net/generic/packet_remote.c
r9536e6e r41811af 37 37 38 38 #include <async.h> 39 #include <async_obsolete.h> 39 40 #include <errno.h> 40 41 #include <ipc/packet.h> … … 59 60 * @return EOK on success. 60 61 * @return Other error codes as defined for the pm_add() function. 61 * @return Other error codes as defined for the async_ share_in_start() function.62 * @return Other error codes as defined for the async_obsolete_share_in_start() function. 62 63 * 63 64 */ … … 69 70 int rc; 70 71 71 message = async_ send_1(phone, NET_PACKET_GET, packet_id, &answer);72 message = async_obsolete_send_1(phone, NET_PACKET_GET, packet_id, &answer); 72 73 73 74 *packet = (packet_t *) as_get_mappable_page(size); 74 rc = async_ share_in_start_0_0(phone, *packet, size);75 rc = async_obsolete_share_in_start_0_0(phone, *packet, size); 75 76 if (rc != EOK) { 76 77 munmap(*packet, size); … … 117 118 sysarg_t size; 118 119 119 rc = async_ req_1_1(phone, NET_PACKET_GET_SIZE, packet_id,120 rc = async_obsolete_req_1_1(phone, NET_PACKET_GET_SIZE, packet_id, 120 121 &size); 121 122 if (rc != EOK) … … 154 155 int rc; 155 156 156 rc = async_ req_4_2(phone, NET_PACKET_CREATE_4, max_content, addr_len,157 rc = async_obsolete_req_4_2(phone, NET_PACKET_CREATE_4, max_content, addr_len, 157 158 max_prefix, max_suffix, &packet_id, &size); 158 159 if (rc != EOK) … … 185 186 int rc; 186 187 187 rc = async_ req_1_2(phone, NET_PACKET_CREATE_1, content, &packet_id,188 rc = async_obsolete_req_1_2(phone, NET_PACKET_CREATE_1, content, &packet_id, 188 189 &size); 189 190 if (rc != EOK) … … 212 213 void pq_release_remote(int phone, packet_id_t packet_id) 213 214 { 214 async_ msg_1(phone, NET_PACKET_RELEASE, packet_id);215 async_obsolete_msg_1(phone, NET_PACKET_RELEASE, packet_id); 215 216 } 216 217
Note:
See TracChangeset
for help on using the changeset viewer.