Changeset 26f2af0 in mainline for uspace/lib/libc/generic/ipc.c


Ignore:
Timestamp:
2007-09-18T19:58:19Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
47a776f9
Parents:
c3b25510
Message:

VFS work.
Implement VFS_REGISTER part of the protocol in the FAT file system.

IPC work.
Rename ipc_data_send_accept() to ipc_data_receive() and ipc_data_send_answer()
to ipc_data_deliver(). Introduce ipc_data_send().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/ipc.c

    rc3b25510 r26f2af0  
    516516int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phonehash)
    517517{
    518         return ipc_call_sync_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 0, 0, 0,
    519             phonehash);
     518        return ipc_call_sync_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 0, 0,
     519            0, phonehash);
    520520}
    521521
     
    533533        int res;
    534534
    535         res =  ipc_call_sync_3(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, 0, 0, 0,
     535        res = ipc_call_sync_3(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, 0, 0, 0,
    536536            &newphid);
    537537        if (res)
     
    596596}
    597597
    598 /** Wrapper for accepting the IPC_M_DATA_SEND calls.
    599  *
    600  * This wrapper only makes it more comfortable to accept IPC_M_DATA_SEND calls
     598/** Wrapper for making IPC_M_DATA_SEND calls.
     599 *
     600 * @param phoneid       Phone that will be used to contact the receiving side.
     601 * @param src           Address of the beginning of the source buffer.
     602 * @param size          Size of the source buffer.
     603 *
     604 * @return              Zero on success or a negative error code from errno.h.
     605 */
     606int ipc_data_send(int phoneid, void *src, size_t size)
     607{
     608        return ipc_call_sync_3(phoneid, IPC_M_DATA_SEND, 0, (ipcarg_t) src,
     609            (ipcarg_t) size, NULL, NULL, NULL);
     610}
     611
     612/** Wrapper for receiving the IPC_M_DATA_SEND calls.
     613 *
     614 * This wrapper only makes it more comfortable to receive IPC_M_DATA_SEND calls
    601615 * so that the user doesn't have to remember the meaning of each IPC argument.
    602616 *
     
    613627 * @return              Non-zero on success, zero on failure.
    614628 */
    615 int ipc_data_send_accept(ipc_callid_t *callid, ipc_call_t *call, void **dst,
     629int ipc_data_receive(ipc_callid_t *callid, ipc_call_t *call, void **dst,
    616630    size_t *size)
    617631{
     
    641655 * @return              Zero on success or a value from @ref errno.h on failure.
    642656 */
    643 ipcarg_t ipc_data_send_answer(ipc_callid_t callid, ipc_call_t *call, void *dst,     size_t size)
     657ipcarg_t ipc_data_deliver(ipc_callid_t callid, ipc_call_t *call, void *dst,
     658    size_t size)
    644659{
    645660        IPC_SET_RETVAL(*call, EOK);
Note: See TracChangeset for help on using the changeset viewer.