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

    r76f566d r984a9ba  
    5454static errno_t pl050_fun_online(ddf_fun_t *);
    5555static errno_t pl050_fun_offline(ddf_fun_t *);
    56 static void pl050_char_conn(cap_call_handle_t, ipc_call_t *, void *);
     56static void pl050_char_conn(ipc_call_t *, void *);
    5757static errno_t pl050_read(chardev_srv_t *, void *, size_t, size_t *);
    5858static errno_t pl050_write(chardev_srv_t *, const void *, size_t, size_t *);
     
    286286}
    287287
    288 void pl050_char_conn(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)
     288void pl050_char_conn(ipc_call_t *icall, void *arg)
    289289{
    290290        pl050_t *pl050 = pl050_from_fun((ddf_fun_t *)arg);
    291291
    292         chardev_conn(icall_handle, icall, &pl050->cds);
     292        chardev_conn(icall, &pl050->cds);
    293293}
    294294
Note: See TracChangeset for help on using the changeset viewer.