Changes in uspace/lib/c/generic/async.c [c7bbf029:9c31643] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
rc7bbf029 r9c31643 102 102 #include <arch/barrier.h> 103 103 #include <bool.h> 104 #include <stdlib.h>105 #include <malloc.h>106 104 #include "private/async.h" 107 105 … … 432 430 433 431 fid_t fid = fibril_create(notification_fibril, msg); 434 if (fid == 0) {435 free(msg);436 futex_up(&async_futex);437 return false;438 }439 440 432 fibril_add_ready(fid); 441 433 … … 689 681 conn->wdata.fid = fibril_create(connection_fibril, conn); 690 682 691 if ( conn->wdata.fid == 0) {683 if (!conn->wdata.fid) { 692 684 free(conn); 693 694 685 if (callid) 695 686 ipc_answer_0(callid, ENOMEM); 696 697 687 return (uintptr_t) NULL; 698 688 } … … 863 853 { 864 854 fid_t fid = fibril_create(async_manager_fibril, NULL); 865 if (fid != 0) 866 fibril_add_manager(fid); 855 fibril_add_manager(fid); 867 856 } 868 857 … … 1574 1563 * @param dst Address of the beginning of the destination buffer. 1575 1564 * @param size Size of the destination buffer. 1576 * @param flags Flags to control the data transfer.1577 1565 * 1578 1566 * @return Zero on success or a negative error code from errno.h. 1579 1567 * 1580 1568 */ 1581 int 1582 async_data_read_start_generic(int phoneid, void *dst, size_t size, int flags) 1583 { 1584 return async_req_3_0(phoneid, IPC_M_DATA_READ, (sysarg_t) dst, 1585 (sysarg_t) size, (sysarg_t) flags); 1569 int async_data_read_start(int phoneid, void *dst, size_t size) 1570 { 1571 return async_req_2_0(phoneid, IPC_M_DATA_READ, (sysarg_t) dst, 1572 (sysarg_t) size); 1586 1573 } 1587 1574 … … 1673 1660 * @param src Address of the beginning of the source buffer. 1674 1661 * @param size Size of the source buffer. 1675 * @param flags Flags to control the data transfer.1676 1662 * 1677 1663 * @return Zero on success or a negative error code from errno.h. 1678 1664 * 1679 1665 */ 1680 int 1681 async_data_write_start_generic(int phoneid, const void *src, size_t size, 1682 int flags) 1683 { 1684 return async_req_3_0(phoneid, IPC_M_DATA_WRITE, (sysarg_t) src, 1685 (sysarg_t) size, (sysarg_t) flags); 1666 int async_data_write_start(int phoneid, const void *src, size_t size) 1667 { 1668 return async_req_2_0(phoneid, IPC_M_DATA_WRITE, (sysarg_t) src, 1669 (sysarg_t) size); 1686 1670 } 1687 1671
Note:
See TracChangeset
for help on using the changeset viewer.