Changeset 9201f47 in mainline


Ignore:
Timestamp:
2007-11-24T14:30:03Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ebd9392
Parents:
d40a8ff
Message:

Introduce the IPC_FF_ROUTE_FROM_ME forwarding flag.

Location:
kernel/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/ipc.h

    rd40a8ff r9201f47  
    100100/* Forwarding flags. */
    101101#define IPC_FF_NONE             0
     102/**
     103 * The call will be routed as though it was initially sent via the phone used to
     104 * forward it. This feature is intended to support the situation in which the
     105 * forwarded call needs to be handled by the same connection fibril as any other
     106 * calls that were initially sent by the forwarder to the same destination. This
     107 * flag has no imapct on routing replies.
     108 */
     109#define IPC_FF_ROUTE_FROM_ME    (1 << 0)
    102110
    103111/* System-specific methods - only through special syscalls
  • kernel/generic/src/ipc/ipc.c

    rd40a8ff r9201f47  
    343343        list_remove(&call->link);
    344344        spinlock_unlock(&oldbox->lock);
     345
     346        if (mode & IPC_FF_ROUTE_FROM_ME)
     347                call->data.phone = newphone;
    345348
    346349        return ipc_call(newphone, call);
Note: See TracChangeset for help on using the changeset viewer.