Ignore:
Timestamp:
2018-07-05T09:34:09Z (7 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
63d46341
Parents:
76f566d
Message:

do not expose the call capability handler from the async framework

Keep the call capability handler encapsulated within the async framework
and do not expose it explicitly via its API. Use the pointer to
ipc_call_t as the sole object identifying an IPC call in the code that
uses the async framework.

This plugs a major leak in the abstraction and also simplifies both the
async framework (slightly) and all IPC servers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/char/s3c24xx_uart/s3c24xx_uart.c

    r76f566d r984a9ba  
    6464static s3c24xx_uart_t *uart;
    6565
    66 static void s3c24xx_uart_connection(cap_call_handle_t, ipc_call_t *, void *);
     66static void s3c24xx_uart_connection(ipc_call_t *, void *);
    6767static void s3c24xx_uart_irq_handler(ipc_call_t *, void *);
    6868static int s3c24xx_uart_init(s3c24xx_uart_t *);
     
    113113
    114114/** Character device connection handler. */
    115 static void s3c24xx_uart_connection(cap_call_handle_t icall_handle, ipc_call_t *icall,
    116     void *arg)
     115static void s3c24xx_uart_connection(ipc_call_t *icall, void *arg)
    117116{
    118117        s3c24xx_uart_t *uart = (s3c24xx_uart_t *) arg;
    119118
    120         chardev_conn(icall_handle, icall, &uart->cds);
    121 }
    122 
     119        chardev_conn(icall, &uart->cds);
     120}
    123121
    124122static void s3c24xx_uart_irq_handler(ipc_call_t *call, void *arg)
Note: See TracChangeset for help on using the changeset viewer.