Subversion Repositories HelenOS

Rev

Rev 2635 | Rev 2637 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2635 Rev 2636
Line 595... Line 595...
595
{
595
{
596
    ipcarg_t newphid;
596
    ipcarg_t newphid;
597
    int res;
597
    int res;
598
 
598
 
599
    res = ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, arg3,
599
    res = ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, arg3,
600
        NULL, NULL, NULL, NULL, &newphid);
600
        NULL, NULL, NULL, NULL, &newphid);
601
    if (res)
601
    if (res)
602
        return res;
602
        return res;
603
    return newphid;
603
    return newphid;
604
}
604
}
605
 
605
 
Line 650... Line 650...
650
 * @param arg2      New value of the second argument for the forwarded call.
650
 * @param arg2      New value of the second argument for the forwarded call.
651
 * @param mode      Flags specifying mode of the forward operation.
651
 * @param mode      Flags specifying mode of the forward operation.
652
 *
652
 *
653
 * @return      Zero on success or an error code.
653
 * @return      Zero on success or an error code.
654
 *
654
 *
655
 * For non-system methods, the old method and arg1 are rewritten by the new
655
 * For non-system methods, the old method, arg1 and arg2 are rewritten by the
656
 * values. For system methods, the new method, arg1 and arg2 are written
656
 * new values. For system methods, the new method, arg1 and arg2 are written
657
 * to the old arg1, arg2 and arg3, respectivelly. Calls with immutable
657
 * to the old arg1, arg2 and arg3, respectivelly. Calls with immutable
658
 * methods are forwarded verbatim.
658
 * methods are forwarded verbatim.
659
 */
659
 */
660
int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method,
660
int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method,
661
    ipcarg_t arg1, ipcarg_t arg2, int mode)
661
    ipcarg_t arg1, ipcarg_t arg2, int mode)
662
{
662
{
663
    return __SYSCALL6(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1,
663
    return __SYSCALL6(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1,
664
        arg2, mode);
664
        arg2, mode);
665
}
665
}
666
 
666
 
667
/** Wrapper for making IPC_M_DATA_SEND calls.
667
/** Wrapper for making IPC_M_DATA_SEND calls.
668
 *
668
 *
669
 * @param phoneid   Phone that will be used to contact the receiving side.
669
 * @param phoneid   Phone that will be used to contact the receiving side.