Changeset 984a9ba in mainline for uspace/drv/char/ski-con/ski-con.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/ski-con/ski-con.c

    r76f566d r984a9ba  
    5050static errno_t ski_con_fibril(void *arg);
    5151static int32_t ski_con_getchar(void);
    52 static void ski_con_connection(cap_call_handle_t, ipc_call_t *, void *);
     52static void ski_con_connection(ipc_call_t *, void *);
    5353
    5454static errno_t ski_con_read(chardev_srv_t *, void *, size_t, size_t *);
     
    255255
    256256/** Character device connection handler. */
    257 static void ski_con_connection(cap_call_handle_t icall_handle, ipc_call_t *icall,
    258     void *arg)
     257static void ski_con_connection(ipc_call_t *icall, void *arg)
    259258{
    260259        ski_con_t *con = (ski_con_t *) ddf_dev_data_get(
    261260            ddf_fun_get_dev((ddf_fun_t *) arg));
    262261
    263         chardev_conn(icall_handle, icall, &con->cds);
     262        chardev_conn(icall, &con->cds);
    264263}
    265264
Note: See TracChangeset for help on using the changeset viewer.