Changeset c028b22 in mainline for uspace/lib/c/generic/ipc.c


Ignore:
Timestamp:
2011-07-08T17:01:01Z (13 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc1a727
Parents:
4e36219 (diff), 026793d (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/c/generic/ipc.c

    r4e36219 rc028b22  
    458458        while (!list_empty(&queued_calls)) {
    459459                async_call_t *call =
    460                     list_get_instance(queued_calls.next, async_call_t, list);
     460                    list_get_instance(list_first(&queued_calls), async_call_t, list);
    461461                ipc_callid_t callid =
    462462                    ipc_call_async_internal(call->u.msg.phoneid, &call->u.msg.data);
     
    511511       
    512512        link_t *item;
    513         for (item = dispatched_calls.next; item != &dispatched_calls;
     513        for (item = dispatched_calls.head.next; item != &dispatched_calls.head;
    514514            item = item->next) {
    515515                async_call_t *call =
     
    632632}
    633633
     634/** Request cloned connection.
     635 *
     636 * @param phoneid Phone handle used for contacting the other side.
     637 *
     638 * @return Cloned phone handle on success or a negative error code.
     639 *
     640 */
     641int ipc_connect_me(int phoneid)
     642{
     643        sysarg_t newphid;
     644        int res = ipc_call_sync_0_5(phoneid, IPC_M_CONNECT_ME, NULL, NULL,
     645            NULL, NULL, &newphid);
     646        if (res)
     647                return res;
     648       
     649        return newphid;
     650}
     651
    634652/** Request new connection.
    635653 *
Note: See TracChangeset for help on using the changeset viewer.