Changeset d40a8ff in mainline for uspace


Ignore:
Timestamp:
2007-11-24T14:19:10Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9201f47
Parents:
0cc4313
Message:

Add mode argument to IPC forward.
This argument can be used to modify the way forward behaves.

Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/ipc.c

    r0cc4313 rd40a8ff  
    647647 * @param method        New method for the forwarded call.
    648648 * @param arg1          New value of the first argument for the forwarded call.
     649 * @param mode          Flags specifying mode of the forward operation.
    649650 *
    650651 * @return              Zero on success or an error code.
     
    656657 */
    657658int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method,
    658     ipcarg_t arg1)
    659 {
    660         return __SYSCALL4(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1);
     659    ipcarg_t arg1, int mode)
     660{
     661        return __SYSCALL5(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1,
     662            mode);
    661663}
    662664
  • uspace/lib/libc/include/ipc/ipc.h

    r0cc4313 rd40a8ff  
    259259extern int ipc_unregister_irq(int inr, int devno);
    260260extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method,
    261     ipcarg_t arg1);
     261    ipcarg_t arg1, int mode);
    262262extern int ipc_data_send(int phoneid, void *src, size_t size);
    263263extern int ipc_data_receive(ipc_callid_t *callid, void **dst, size_t *size);
  • uspace/srv/devmap/devmap.c

    r0cc4313 rd40a8ff  
    472472        /* FIXME: is this correct method how to pass argument on forwarding ?*/
    473473        ipc_forward_fast(callid, dev->driver->phone, (ipcarg_t)(dev->handle),
    474             0);
     474            0, IPC_FF_NONE);
    475475        return;
    476476}
  • uspace/srv/ns/ns.c

    r0cc4313 rd40a8ff  
    213213        }
    214214        hs = hash_table_get_instance(hlp, hashed_service_t, link);
    215         return ipc_forward_fast(callid, hs->phone, IPC_GET_ARG2(*call), 0);
     215        return ipc_forward_fast(callid, hs->phone, IPC_GET_ARG2(*call), 0,
     216            IPC_FF_NONE);
    216217}
    217218
Note: See TracChangeset for help on using the changeset viewer.