Changeset 8820544 in mainline for uspace/srv/klog/klog.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/klog/klog.c

    r83f29e0 r8820544  
    4040#include <as.h>
    4141#include <ddi.h>
    42 #include <event.h>
    4342#include <errno.h>
    4443#include <str_error.h>
     
    193192 *
    194193 */
    195 static void notification_received(ipc_callid_t callid, ipc_call_t *call)
     194static void klog_notification_received(ipc_callid_t callid, ipc_call_t *call,
     195    void *arg)
    196196{
    197197        /*
     
    205205        producer();
    206206       
    207         event_unmask(EVENT_KLOG);
     207        async_event_unmask(EVENT_KLOG);
    208208        fibril_mutex_unlock(&mtx);
    209209}
     
    229229       
    230230        prodcons_initialize(&pc);
    231         async_set_interrupt_received(notification_received);
    232         rc = event_subscribe(EVENT_KLOG, 0);
     231        rc = async_event_subscribe(EVENT_KLOG, klog_notification_received, NULL);
    233232        if (rc != EOK) {
    234233                log_msg(LOG_DEFAULT, LVL_ERROR,
     
    245244       
    246245        fibril_add_ready(fid);
    247         event_unmask(EVENT_KLOG);
     246        async_event_unmask(EVENT_KLOG);
    248247       
    249248        fibril_mutex_lock(&mtx);
Note: See TracChangeset for help on using the changeset viewer.