Changeset b7068da in mainline for uspace/lib/net/generic/packet_remote.c
- Timestamp:
- 2012-02-09T20:35:12Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 591762c6
- Parents:
- 7cede12c (diff), 3d4750f (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
r7cede12c rb7068da 66 66 packet_id_t packet_id, size_t size) 67 67 { 68 *packet = (packet_t *) as_get_mappable_page(size);69 70 68 async_exch_t *exch = async_exchange_begin(sess); 71 69 ipc_call_t answer; 72 70 aid_t message = async_send_1(exch, NET_PACKET_GET, packet_id, &answer); 73 int rc = async_share_in_start_0_0(exch, *packet, size);71 int rc = async_share_in_start_0_0(exch, size, (void *) packet); 74 72 async_exchange_end(exch); 75 73 … … 77 75 async_wait_for(message, &result); 78 76 79 if (rc != EOK) { 80 munmap(*packet, size); 77 if (rc != EOK) 81 78 return rc; 82 } 79 80 if (packet == (void *) -1) 81 return ENOMEM; 83 82 84 83 rc = pm_add(*packet);
Note:
See TracChangeset
for help on using the changeset viewer.