Changeset 984a9ba in mainline for uspace/drv/char/i8042/i8042.c


Ignore:
Timestamp:
2018-07-05T09:34:09Z (6 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/drv/char/i8042/i8042.c

    r76f566d r984a9ba  
    6767#define i8042_KBD_TRANSLATE  0x40  /* Use this to switch to XT scancodes */
    6868
    69 static void i8042_char_conn(cap_call_handle_t, ipc_call_t *, void *);
     69static void i8042_char_conn(ipc_call_t *, void *);
    7070static errno_t i8042_read(chardev_srv_t *, void *, size_t, size_t *);
    7171static errno_t i8042_write(chardev_srv_t *, const void *, size_t, size_t *);
     
    415415/** Handle data requests.
    416416 *
    417  * @param id   chandle
    418417 * @param call IPC request.
    419418 * @param arg  ddf_fun_t function.
    420  */
    421 void i8042_char_conn(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)
     419 *
     420 */
     421void i8042_char_conn(ipc_call_t *icall, void *arg)
    422422{
    423423        i8042_port_t *port = ddf_fun_data_get((ddf_fun_t *)arg);
    424424
    425         chardev_conn(icall_handle, icall, &port->cds);
     425        chardev_conn(icall, &port->cds);
    426426}
    427427
Note: See TracChangeset for help on using the changeset viewer.