Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async.c

    rfbcdeb8 r972c60ce  
    19981998 *
    19991999 * @param exch  Exchange for sending the message.
     2000 * @param dst   Destination address space area base.
    20002001 * @param size  Size of the destination address space area.
    20012002 * @param arg   User defined argument.
    20022003 * @param flags Storage for the received flags. Can be NULL.
    2003  * @param dst   Destination address space area base. Cannot be NULL.
    20042004 *
    20052005 * @return Zero on success or a negative error code from errno.h.
    20062006 *
    20072007 */
    2008 int async_share_in_start(async_exch_t *exch, size_t size, sysarg_t arg,
    2009     unsigned int *flags, void **dst)
     2008int async_share_in_start(async_exch_t *exch, void *dst, size_t size,
     2009    sysarg_t arg, unsigned int *flags)
    20102010{
    20112011        if (exch == NULL)
    20122012                return ENOENT;
    20132013       
    2014         sysarg_t _flags = 0;
    2015         sysarg_t _dst = (sysarg_t) -1;
    2016         int res = async_req_2_4(exch, IPC_M_SHARE_IN, (sysarg_t) size,
    2017             arg, NULL, &_flags, NULL, &_dst);
     2014        sysarg_t tmp_flags;
     2015        int res = async_req_3_2(exch, IPC_M_SHARE_IN, (sysarg_t) dst,
     2016            (sysarg_t) size, arg, NULL, &tmp_flags);
    20182017       
    20192018        if (flags)
    2020                 *flags = (unsigned int) _flags;
    2021        
    2022         *dst = (void *) _dst;
     2019                *flags = (unsigned int) tmp_flags;
     2020       
    20232021        return res;
    20242022}
     
    20492047                return false;
    20502048       
    2051         *size = (size_t) IPC_GET_ARG1(data);
     2049        *size = (size_t) IPC_GET_ARG2(data);
    20522050        return true;
    20532051}
     
    20552053/** Wrapper for answering the IPC_M_SHARE_IN calls using the async framework.
    20562054 *
    2057  * This wrapper only makes it more comfortable to answer IPC_M_SHARE_IN
     2055 * This wrapper only makes it more comfortable to answer IPC_M_DATA_READ
    20582056 * calls so that the user doesn't have to remember the meaning of each IPC
    20592057 * argument.
     
    21332131 *
    21342132 */
    2135 int async_share_out_finalize(ipc_callid_t callid, void **dst)
     2133int async_share_out_finalize(ipc_callid_t callid, void *dst)
    21362134{
    21372135        return ipc_share_out_finalize(callid, dst);
Note: See TracChangeset for help on using the changeset viewer.