Changeset c4fb95d3 in mainline for uspace/srv/bd/file_bd/file_bd.c
- Timestamp:
- 2011-02-18T20:04:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d011038
- Parents:
- 87e373b (diff), 8b1ea2d4 (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/file_bd/file_bd.c
r87e373b rc4fb95d3 41 41 #include <stdio.h> 42 42 #include <unistd.h> 43 #include <ipc/ipc.h>44 43 #include <ipc/bd.h> 45 44 #include <async.h> … … 178 177 sysarg_t method; 179 178 size_t comm_size; 180 int flags;179 unsigned int flags; 181 180 int retval; 182 181 uint64_t ba; … … 184 183 185 184 /* Answer the IPC_M_CONNECT_ME_TO call. */ 186 ipc_answer_0(iid, EOK);185 async_answer_0(iid, EOK); 187 186 188 187 if (!async_share_out_receive(&callid, &comm_size, &flags)) { 189 ipc_answer_0(callid, EHANGUP);188 async_answer_0(callid, EHANGUP); 190 189 return; 191 190 } … … 193 192 fs_va = as_get_mappable_page(comm_size); 194 193 if (fs_va == NULL) { 195 ipc_answer_0(callid, EHANGUP);194 async_answer_0(callid, EHANGUP); 196 195 return; 197 196 } … … 205 204 case IPC_M_PHONE_HUNGUP: 206 205 /* The other side has hung up. */ 207 ipc_answer_0(callid, EOK);206 async_answer_0(callid, EOK); 208 207 return; 209 208 case BD_READ_BLOCKS: … … 228 227 break; 229 228 case BD_GET_BLOCK_SIZE: 230 ipc_answer_1(callid, EOK, block_size);229 async_answer_1(callid, EOK, block_size); 231 230 continue; 232 231 case BD_GET_NUM_BLOCKS: 233 ipc_answer_2(callid, EOK, LOWER32(num_blocks),232 async_answer_2(callid, EOK, LOWER32(num_blocks), 234 233 UPPER32(num_blocks)); 235 234 continue; … … 238 237 break; 239 238 } 240 ipc_answer_0(callid, retval);239 async_answer_0(callid, retval); 241 240 } 242 241 }
Note:
See TracChangeset
for help on using the changeset viewer.