Changes in uspace/lib/c/generic/async.c [8e80d3f:8bf1eeb] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r8e80d3f r8bf1eeb 1567 1567 } 1568 1568 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 */ 1577 aid_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 1569 1583 /** Wrapper for IPC_M_DATA_READ calls using the async framework. 1570 1584 * … … 1572 1586 * @param dst Address of the beginning of the destination buffer. 1573 1587 * @param size Size of the destination buffer. 1574 * @param flags Flags to control the data transfer.1575 1588 * 1576 1589 * @return Zero on success or a negative error code from errno.h. 1577 1590 * 1578 1591 */ 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); 1592 int 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); 1584 1596 } 1585 1597 … … 1671 1683 * @param src Address of the beginning of the source buffer. 1672 1684 * @param size Size of the source buffer. 1673 * @param flags Flags to control the data transfer.1674 1685 * 1675 1686 * @return Zero on success or a negative error code from errno.h. 1676 1687 * 1677 1688 */ 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); 1689 int 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); 1684 1693 } 1685 1694
Note:
See TracChangeset
for help on using the changeset viewer.