Subversion Repositories HelenOS

Rev

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

Rev 2620 Rev 2622
Line 644... Line 644...
644
 *
644
 *
645
 * @param callid    Hash of the call to forward.
645
 * @param callid    Hash of the call to forward.
646
 * @param phoneid   Phone handle to use for forwarding.
646
 * @param phoneid   Phone handle to use for forwarding.
647
 * @param method    New method for the forwarded call.
647
 * @param method    New method for the forwarded call.
648
 * @param arg1      New value of the first argument for the forwarded call.
648
 * @param arg1      New value of the first argument for the forwarded call.
-
 
649
 * @param mode      Flags specifying mode of the forward operation.
649
 *
650
 *
650
 * @return      Zero on success or an error code.
651
 * @return      Zero on success or an error code.
651
 *
652
 *
652
 * For non-system methods, the old method and arg1 are rewritten by the new
653
 * For non-system methods, the old method and arg1 are rewritten by the new
653
 * values. For system methods, the new method and arg1 are written to the old
654
 * values. For system methods, the new method and arg1 are written to the old
654
 * arg1 and arg2, respectivelly. Calls with immutable methods are forwarded
655
 * arg1 and arg2, respectivelly. Calls with immutable methods are forwarded
655
 * verbatim.
656
 * verbatim.
656
 */
657
 */
657
int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method,
658
int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method,
658
    ipcarg_t arg1)
659
    ipcarg_t arg1, int mode)
659
{
660
{
660
    return __SYSCALL4(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1);
661
    return __SYSCALL5(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1,
-
 
662
        mode);
661
}
663
}
662
 
664
 
663
/** Wrapper for making IPC_M_DATA_SEND calls.
665
/** Wrapper for making IPC_M_DATA_SEND calls.
664
 *
666
 *
665
 * @param phoneid   Phone that will be used to contact the receiving side.
667
 * @param phoneid   Phone that will be used to contact the receiving side.