Changeset a33f0a6 in mainline for uspace/srv/bd/part/guid_part/guid_part.c
- Timestamp:
- 2011-08-03T17:34:57Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1940326
- Parents:
- 52a79081 (diff), 3fab770 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/part/guid_part/guid_part.c
r52a79081 ra33f0a6 99 99 static part_t *gpt_part_new(void); 100 100 static void gpt_pte_to_part(const gpt_entry_t *pte, part_t *part); 101 static void gpt_connection(ipc_callid_t iid, ipc_call_t *icall );101 static void gpt_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg); 102 102 static int gpt_bd_read(part_t *p, aoff64_t ba, size_t cnt, void *buf); 103 103 static int gpt_bd_write(part_t *p, aoff64_t ba, size_t cnt, const void *buf); … … 139 139 } 140 140 141 rc = block_init( indev_handle, 2048);141 rc = block_init(EXCHANGE_SERIALIZE, indev_handle, 2048); 142 142 if (rc != EOK) { 143 143 printf(NAME ": could not init libblock.\n"); … … 307 307 } 308 308 309 static void gpt_connection(ipc_callid_t iid, ipc_call_t *icall )309 static void gpt_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 310 310 { 311 311 size_t comm_size; … … 356 356 (void) async_share_out_finalize(callid, fs_va); 357 357 358 while ( 1) {358 while (true) { 359 359 callid = async_get_call(&call); 360 360 method = IPC_GET_IMETHOD(call); 361 switch (method) {362 case IPC_M_PHONE_HUNGUP:361 362 if (!method) { 363 363 /* The other side has hung up. */ 364 364 async_answer_0(callid, EOK); 365 365 return; 366 } 367 368 switch (method) { 366 369 case BD_READ_BLOCKS: 367 370 ba = MERGE_LOUP32(IPC_GET_ARG1(call),
Note:
See TracChangeset
for help on using the changeset viewer.