Changeset 3c22f70 in mainline for uspace/lib/c/generic/async.c


Ignore:
Timestamp:
2011-01-24T00:14:13Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8c9b742
Parents:
11bb813
Message:

Pass client task hash into async_new_connection().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async.c

    r11bb813 r3c22f70  
    139139        link_t link;
    140140       
     141        /** Incoming client task hash. */
     142        sysarg_t in_task_hash;
    141143        /** Incoming phone hash. */
    142144        sysarg_t in_phone_hash;
     
    517519 * particular fibrils.
    518520 *
     521 * @param in_task_hash  Identification of the incoming connection.
    519522 * @param in_phone_hash Identification of the incoming connection.
    520523 * @param callid        Hash of the opening IPC_M_CONNECT_ME_TO call.
     
    529532 *
    530533 */
    531 fid_t async_new_connection(sysarg_t in_phone_hash, ipc_callid_t callid,
    532     ipc_call_t *call, void (*cfibril)(ipc_callid_t, ipc_call_t *))
     534fid_t async_new_connection(sysarg_t in_task_hash, sysarg_t in_phone_hash,
     535    ipc_callid_t callid, ipc_call_t *call,
     536    void (*cfibril)(ipc_callid_t, ipc_call_t *))
    533537{
    534538        connection_t *conn = malloc(sizeof(*conn));
     
    539543        }
    540544       
     545        conn->in_task_hash = in_task_hash;
    541546        conn->in_phone_hash = in_phone_hash;
    542547        list_initialize(&conn->msg_queue);
     
    592597        case IPC_M_CONNECT_ME_TO:
    593598                /* Open new connection with fibril etc. */
    594                 async_new_connection(IPC_GET_ARG5(*call), callid, call,
    595                     client_connection);
     599                async_new_connection(call->in_task_hash, IPC_GET_ARG5(*call),
     600                    callid, call, client_connection);
    596601                goto out;
    597602        }
Note: See TracChangeset for help on using the changeset viewer.