Changes in uspace/srv/bd/rd/rd.c [7ea7db31:47b7006] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/rd/rd.c
r7ea7db31 r47b7006 39 39 */ 40 40 41 #include <ipc/ipc.h>42 41 #include <ipc/services.h> 43 42 #include <ipc/ns.h> … … 98 97 * Answer the first IPC_M_CONNECT_ME_TO call. 99 98 */ 100 ipc_answer_0(iid, EOK);99 async_answer_0(iid, EOK); 101 100 102 101 /* 103 102 * Now we wait for the client to send us its communication as_area. 104 103 */ 105 int flags;104 unsigned int flags; 106 105 if (async_share_out_receive(&callid, &comm_size, &flags)) { 107 106 fs_va = as_get_mappable_page(comm_size); … … 109 108 (void) async_share_out_finalize(callid, fs_va); 110 109 } else { 111 ipc_answer_0(callid, EHANGUP);110 async_answer_0(callid, EHANGUP); 112 111 return; 113 112 } … … 118 117 * Close the connection. 119 118 */ 120 ipc_answer_0(callid, EHANGUP);119 async_answer_0(callid, EHANGUP); 121 120 return; 122 121 } … … 130 129 * Answer the message and exit the fibril. 131 130 */ 132 ipc_answer_0(callid, EOK);131 async_answer_0(callid, EOK); 133 132 return; 134 133 case BD_READ_BLOCKS: … … 153 152 break; 154 153 case BD_GET_BLOCK_SIZE: 155 ipc_answer_1(callid, EOK, block_size);154 async_answer_1(callid, EOK, block_size); 156 155 continue; 157 156 case BD_GET_NUM_BLOCKS: 158 ipc_answer_2(callid, EOK, LOWER32(rd_size / block_size),157 async_answer_2(callid, EOK, LOWER32(rd_size / block_size), 159 158 UPPER32(rd_size / block_size)); 160 159 continue; … … 169 168 break; 170 169 } 171 ipc_answer_0(callid, retval);170 async_answer_0(callid, retval); 172 171 } 173 172 }
Note:
See TracChangeset
for help on using the changeset viewer.