Ignore:
File:
1 edited

Legend:

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

    r8e80d3f r8bf1eeb  
    15671567}
    15681568
     1569/** Start IPC_M_DATA_READ using the async framework.
     1570 *
     1571 * @param phoneid Phone that will be used to contact the receiving side.
     1572 * @param dst Address of the beginning of the destination buffer.
     1573 * @param size Size of the destination buffer (in bytes).
     1574 * @param dataptr Storage of call data (arg 2 holds actual data size).
     1575 * @return Hash of the sent message or 0 on error.
     1576 */
     1577aid_t async_data_read(int phoneid, void *dst, size_t size, ipc_call_t *dataptr)
     1578{
     1579        return async_send_2(phoneid, IPC_M_DATA_READ, (sysarg_t) dst,
     1580            (sysarg_t) size, dataptr);
     1581}
     1582
    15691583/** Wrapper for IPC_M_DATA_READ calls using the async framework.
    15701584 *
     
    15721586 * @param dst     Address of the beginning of the destination buffer.
    15731587 * @param size    Size of the destination buffer.
    1574  * @param flags   Flags to control the data transfer.
    15751588 *
    15761589 * @return Zero on success or a negative error code from errno.h.
    15771590 *
    15781591 */
    1579 int
    1580 async_data_read_start_generic(int phoneid, void *dst, size_t size, int flags)
    1581 {
    1582         return async_req_3_0(phoneid, IPC_M_DATA_READ, (sysarg_t) dst,
    1583             (sysarg_t) size, (sysarg_t) flags);
     1592int async_data_read_start(int phoneid, void *dst, size_t size)
     1593{
     1594        return async_req_2_0(phoneid, IPC_M_DATA_READ, (sysarg_t) dst,
     1595            (sysarg_t) size);
    15841596}
    15851597
     
    16711683 * @param src     Address of the beginning of the source buffer.
    16721684 * @param size    Size of the source buffer.
    1673  * @param flags   Flags to control the data transfer.
    16741685 *
    16751686 * @return Zero on success or a negative error code from errno.h.
    16761687 *
    16771688 */
    1678 int
    1679 async_data_write_start_generic(int phoneid, const void *src, size_t size,
    1680     int flags)
    1681 {
    1682         return async_req_3_0(phoneid, IPC_M_DATA_WRITE, (sysarg_t) src,
    1683             (sysarg_t) size, (sysarg_t) flags);
     1689int async_data_write_start(int phoneid, const void *src, size_t size)
     1690{
     1691        return async_req_2_0(phoneid, IPC_M_DATA_WRITE, (sysarg_t) src,
     1692            (sysarg_t) size);
    16841693}
    16851694
Note: See TracChangeset for help on using the changeset viewer.