Changeset 7e1f9b7 in mainline for uspace/lib/net/generic/packet_remote.c
- Timestamp:
- 2010-11-20T17:10:35Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32eceb4f, 8b3bff5
- Parents:
- 0b4a67a (diff), dd5046dd (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
r0b4a67a r7e1f9b7 64 64 */ 65 65 static int 66 packet_return(int phone, packet_t * packet, packet_id_t packet_id, size_t size)66 packet_return(int phone, packet_t **packet, packet_id_t packet_id, size_t size) 67 67 { 68 68 ipc_call_t answer; … … 72 72 message = async_send_1(phone, NET_PACKET_GET, packet_id, &answer); 73 73 74 *packet = (packet_t ) as_get_mappable_page(size);74 *packet = (packet_t *) as_get_mappable_page(size); 75 75 rc = async_share_in_start_0_0(phone, *packet, size); 76 76 if (rc != EOK) { … … 107 107 * function. 108 108 */ 109 int packet_translate_remote(int phone, packet_t * packet, packet_id_t packet_id)109 int packet_translate_remote(int phone, packet_t **packet, packet_id_t packet_id) 110 110 { 111 111 int rc; … … 127 127 } 128 128 if ((*packet)->next) { 129 packet_t next;129 packet_t *next; 130 130 131 131 return packet_translate_remote(phone, &next, (*packet)->next); … … 148 148 * @return NULL on error. 149 149 */ 150 packet_t packet_get_4_remote(int phone, size_t max_content, size_t addr_len,150 packet_t *packet_get_4_remote(int phone, size_t max_content, size_t addr_len, 151 151 size_t max_prefix, size_t max_suffix) 152 152 { … … 161 161 162 162 163 packet_t packet = pm_find(packet_id);163 packet_t *packet = pm_find(packet_id); 164 164 if (!packet) { 165 165 rc = packet_return(phone, &packet, packet_id, size); … … 180 180 * @return NULL on error. 181 181 */ 182 packet_t packet_get_1_remote(int phone, size_t content)182 packet_t *packet_get_1_remote(int phone, size_t content) 183 183 { 184 184 ipcarg_t packet_id; … … 191 191 return NULL; 192 192 193 packet_t packet = pm_find(packet_id);193 packet_t *packet = pm_find(packet_id); 194 194 if (!packet) { 195 195 rc = packet_return(phone, &packet, packet_id, size);
Note:
See TracChangeset
for help on using the changeset viewer.