Changeset 8820544 in mainline for uspace/srv/hid/input/input.c


Ignore:
Timestamp:
2014-08-16T00:02:04Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
35b8bfe, 8cd680c
Parents:
83f29e0
Message:

support for kernel notification multiplexing in the async framework

  • rename SYS_EVENT_* and SYS_IRQ_* syscalls to unify the terminology
  • add SYS_IPC_EVENT_UNSUBSCRIBE
  • remove IRQ handler multiplexing from DDF, the generic mechanism replaces it (unfortunatelly the order of arguments used by interrupt_handler_t needs to be permutated to align with the async framework conventions)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/input.c

    r83f29e0 r8820544  
    5454#include <io/keycode.h>
    5555#include <loc.h>
    56 #include <event.h>
    5756#include <str_error.h>
    5857#include "layout.h"
     
    358357}
    359358
    360 static void kconsole_event_received(ipc_callid_t callid, ipc_call_t *call)
     359static void kconsole_event_handler(ipc_callid_t callid, ipc_call_t *call,
     360    void *arg)
    361361{
    362362        if (IPC_GET_ARG1(*call)) {
     
    772772       
    773773        /* Receive kernel notifications */
    774         async_set_interrupt_received(kconsole_event_received);
    775         rc = event_subscribe(EVENT_KCONSOLE, 0);
     774        rc = async_event_subscribe(EVENT_KCONSOLE, kconsole_event_handler, NULL);
    776775        if (rc != EOK)
    777776                printf("%s: Failed to register kconsole notifications (%s)\n",
Note: See TracChangeset for help on using the changeset viewer.