Changes between Version 4 and Version 5 of IPC
- Timestamp:
- 2009-10-11T20:19:49Z (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IPC
v4 v5 211 211 size_t pa_len; 212 212 ... 213 rc = ipc_data_write_start(vfs_phone, pa, pa_len);213 rc = async_data_write_start(vfs_phone, pa, pa_len); 214 214 if (rc != EOK) { 215 215 /* an error or the recipient denied the bid */ … … 226 226 size_t len; 227 227 ... 228 if (! ipc_data_write_receive(&callid, &len)) {228 if (!async_data_write_receive(&callid, &len)) { 229 229 /* protocol error - the sender is not sending data */ 230 230 } … … 241 241 char *path; 242 242 ... 243 (void) ipc_data_write_finalize(callid, path, len);243 (void) async_data_write_finalize(callid, path, len); 244 244 }}} 245 245 … … 261 261 ipcarg_t rc; 262 262 ... 263 rc = ipc_data_read_start(vfs_phone, buf, nbyte);263 rc = async_data_read_start(vfs_phone, buf, nbyte); 264 264 if (rc != EOK) { 265 265 /* handle error */ … … 275 275 size_t len; 276 276 ... 277 if (! ipc_data_read_receive(&callid, &len)) {277 if (!async_data_read_receive(&callid, &len)) { 278 278 /* protocol error - the recipient is not accepting data */ 279 279 } … … 285 285 286 286 {{{ 287 (void) ipc_data_read_finalize(callid, dentry->data + pos, bytes);287 (void) async_data_read_finalize(callid, dentry->data + pos, bytes); 288 288 }}} 289 289 … … 313 313 void *com_area; 314 314 ... 315 rc = ipc_share_out_start(dev_phone, com_area,315 rc = async_share_out_start(dev_phone, com_area, 316 316 AS_AREA_READ | AS_AREA_WRITE); 317 317 if (rc != EOK) { … … 329 329 int flags; 330 330 ... 331 if (! ipc_share_out_receive(&callid, &maxblock_size, &flags)) {331 if (!async_share_out_receive(&callid, &maxblock_size, &flags)) { 332 332 /* handle error */ 333 333 } … … 339 339 void *fs_va; 340 340 ... 341 (void) ipc_share_out_finalize(callid, fs_va);341 (void) async_share_out_finalize(callid, fs_va); 342 342 }}} 343 343 … … 357 357 int rc; 358 358 ... 359 rc = ipc_share_in_start_0_0(vfs_phone, reg->plb_ro, PLB_SIZE);359 rc = async_share_in_start_0_0(vfs_phone, reg->plb_ro, PLB_SIZE); 360 360 if (rc != EOK) { 361 361 /* handle error */ … … 372 372 size_t size; 373 373 ... 374 if (! ipc_share_in_receive(&callid, &size)) {374 if (!async_share_in_receive(&callid, &size)) { 375 375 /* handle error */ 376 376 } … … 382 382 ... 383 383 uint8_t *plb; 384 (void) ipc_share_in_finalize(callid, plb, AS_AREA_READ | AS_AREA_CACHEABLE);384 (void) async_share_in_finalize(callid, plb, AS_AREA_READ | AS_AREA_CACHEABLE); 385 385 }}} 386 386