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