Ignore:
Timestamp:
2010-12-25T21:20:28Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
631ee0c
Parents:
1bfd3d3 (diff), 09178b7f (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.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/packet_remote.c

    r1bfd3d3 r973ef9fc  
    6464 */
    6565static int
    66 packet_return(int phone, packet_t *packet, packet_id_t packet_id, size_t size)
     66packet_return(int phone, packet_t **packet, packet_id_t packet_id, size_t size)
    6767{
    6868        ipc_call_t answer;
     
    7272        message = async_send_1(phone, NET_PACKET_GET, packet_id, &answer);
    7373
    74         *packet = (packet_t) as_get_mappable_page(size);
     74        *packet = (packet_t *) as_get_mappable_page(size);
    7575        rc = async_share_in_start_0_0(phone, *packet, size);
    7676        if (rc != EOK) {
     
    8686        }
    8787       
    88         ipcarg_t result;
     88        sysarg_t result;
    8989        async_wait_for(message, &result);
    9090       
     
    107107 *                      function.
    108108 */
    109 int packet_translate_remote(int phone, packet_t *packet, packet_id_t packet_id)
     109int packet_translate_remote(int phone, packet_t **packet, packet_id_t packet_id)
    110110{
    111111        int rc;
     
    116116        *packet = pm_find(packet_id);
    117117        if (!*packet) {
    118                 ipcarg_t size;
     118                sysarg_t size;
    119119               
    120120                rc = async_req_1_1(phone, NET_PACKET_GET_SIZE, packet_id,
     
    127127        }
    128128        if ((*packet)->next) {
    129                 packet_t next;
     129                packet_t *next;
    130130               
    131131                return packet_translate_remote(phone, &next, (*packet)->next);
     
    148148 * @return              NULL on error.
    149149 */
    150 packet_t packet_get_4_remote(int phone, size_t max_content, size_t addr_len,
     150packet_t *packet_get_4_remote(int phone, size_t max_content, size_t addr_len,
    151151    size_t max_prefix, size_t max_suffix)
    152152{
    153         ipcarg_t packet_id;
    154         ipcarg_t size;
     153        sysarg_t packet_id;
     154        sysarg_t size;
    155155        int rc;
    156156       
     
    161161       
    162162       
    163         packet_t packet = pm_find(packet_id);
     163        packet_t *packet = pm_find(packet_id);
    164164        if (!packet) {
    165165                rc = packet_return(phone, &packet, packet_id, size);
     
    180180 * @return              NULL on error.
    181181 */
    182 packet_t packet_get_1_remote(int phone, size_t content)
    183 {
    184         ipcarg_t packet_id;
    185         ipcarg_t size;
     182packet_t *packet_get_1_remote(int phone, size_t content)
     183{
     184        sysarg_t packet_id;
     185        sysarg_t size;
    186186        int rc;
    187187       
     
    191191                return NULL;
    192192       
    193         packet_t packet = pm_find(packet_id);
     193        packet_t *packet = pm_find(packet_id);
    194194        if (!packet) {
    195195                rc = packet_return(phone, &packet, packet_id, size);
Note: See TracChangeset for help on using the changeset viewer.