Changeset 01c3bb4 in mainline for uspace/app/kio/kio.c


Ignore:
Timestamp:
2017-11-25T15:43:25Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce4a21a0
Parents:
98cb5e0d
Message:

Convert call-handling syscalls to capabilities

This commit modifies the behavior of sys_ipc_wait_for_call() to return a
capability handle for requests. This capability handle can be used
either by sys_ipc_answer*() to answer the call or by sys_ipc_forward*()
to forward it further along. Answering or forwarding the call results in
destruction of the respective capability. For requests and
notifications, sys_ipc_wait_for_call() returns CAP_NIL and sets call
flags accordingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/kio/kio.c

    r98cb5e0d r01c3bb4  
    144144 * Receives kernel kio notifications.
    145145 *
    146  * @param callid IPC call ID
    147146 * @param call   IPC call structure
    148147 * @param arg    Local argument
    149148 *
    150149 */
    151 static void kio_notification_handler(ipc_callid_t callid, ipc_call_t *call,
    152     void *arg)
     150static void kio_notification_handler(ipc_call_t *call, void *arg)
    153151{
    154152        /*
Note: See TracChangeset for help on using the changeset viewer.