Changeset 215e375 in mainline for uspace/lib/libc/include/ipc/ipc.h


Ignore:
Timestamp:
2007-12-31T17:23:20Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f57f8ea
Parents:
27d293a
Message:

The IPC_M_SHARE_* and IPC_M_DATA_* calls pass through 3 stages. Rename the send,
receive and deliver wrappers to names ending with 'start', 'receive' and
'finalize', respectively. This should make it clearer for dummies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ipc/ipc.h

    r27d293a r215e375  
    264264
    265265/*
    266  * User-friendly wrappers for ipc_share_in_send().
    267  */
    268 #define ipc_share_in_send_0_0(phoneid, dst, size) \
    269     ipc_share_in_send((phoneid), (dst), (size), 0, NULL)
    270 #define ipc_share_in_send_0_1(phoneid, dst, size, flags) \
    271     ipc_share_in_send((phoneid), (dst), (size), 0, (flags))
    272 #define ipc_share_in_send_1_0(phoneid, dst, size, arg) \
    273     ipc_share_in_send((phoneid), (dst), (size), (arg), NULL)
    274 #define ipc_share_in_send_1_1(phoneid, dst, size, arg, flags) \
    275     ipc_share_in_send((phoneid), (dst), (size), (arg), (flags))
    276 
    277 extern int ipc_share_in_send(int phoneid, void *dst, size_t size, ipcarg_t arg,
     266 * User-friendly wrappers for ipc_share_in_start().
     267 */
     268#define ipc_share_in_start_0_0(phoneid, dst, size) \
     269    ipc_share_in_start((phoneid), (dst), (size), 0, NULL)
     270#define ipc_share_in_start_0_1(phoneid, dst, size, flags) \
     271    ipc_share_in_start((phoneid), (dst), (size), 0, (flags))
     272#define ipc_share_in_start_1_0(phoneid, dst, size, arg) \
     273    ipc_share_in_start((phoneid), (dst), (size), (arg), NULL)
     274#define ipc_share_in_start_1_1(phoneid, dst, size, arg, flags) \
     275    ipc_share_in_start((phoneid), (dst), (size), (arg), (flags))
     276
     277extern int ipc_share_in_start(int phoneid, void *dst, size_t size, ipcarg_t arg,
    278278    int *flags);
    279279extern int ipc_share_in_receive(ipc_callid_t *callid, size_t *size);
    280 extern int ipc_share_in_deliver(ipc_callid_t callid, void *src, int flags);
    281 extern int ipc_share_out_send(int phoneid, void *src, int flags);
     280extern int ipc_share_in_finalize(ipc_callid_t callid, void *src, int flags);
     281extern int ipc_share_out_start(int phoneid, void *src, int flags);
    282282extern int ipc_share_out_receive(ipc_callid_t *callid, size_t *size, int *flags);
    283 extern int ipc_share_out_deliver(ipc_callid_t callid, void *dst);
    284 extern int ipc_data_read_send(int phoneid, void *dst, size_t size);
     283extern int ipc_share_out_finalize(ipc_callid_t callid, void *dst);
     284extern int ipc_data_read_start(int phoneid, void *dst, size_t size);
    285285extern int ipc_data_read_receive(ipc_callid_t *callid, size_t *size);
    286 extern int ipc_data_read_deliver(ipc_callid_t callid, void *src, size_t size);
    287 extern int ipc_data_write_send(int phoneid, void *src, size_t size);
     286extern int ipc_data_read_finalize(ipc_callid_t callid, void *src, size_t size);
     287extern int ipc_data_write_start(int phoneid, void *src, size_t size);
    288288extern int ipc_data_write_receive(ipc_callid_t *callid, size_t *size);
    289 extern int ipc_data_write_deliver(ipc_callid_t callid, void *dst, size_t size);
     289extern int ipc_data_write_finalize(ipc_callid_t callid, void *dst, size_t size);
    290290
    291291#endif
Note: See TracChangeset for help on using the changeset viewer.