Changeset e77994dd in mainline
- Timestamp:
- 2009-06-03T19:14:52Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9db9b10
- Parents:
- b267ee6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/devmap.c
rb267ee6 re77994dd 100 100 return phone; 101 101 102 async_serialize_start(); 103 102 104 ipc_call_t answer; 103 105 aid_t req = async_send_2(phone, DEVMAP_DRIVER_REGISTER, 0, 0, &answer); … … 107 109 if (retval != EOK) { 108 110 async_wait_for(req, NULL); 111 async_serialize_end(); 109 112 return -1; 110 113 } … … 116 119 async_wait_for(req, &retval); 117 120 121 async_serialize_end(); 122 118 123 return retval; 119 124 } … … 132 137 return phone; 133 138 139 async_serialize_start(); 140 134 141 ipc_call_t answer; 135 142 aid_t req = async_send_2(phone, DEVMAP_DEVICE_REGISTER, 0, 0, … … 140 147 if (retval != EOK) { 141 148 async_wait_for(req, NULL); 142 return retval; 143 } 144 145 async_wait_for(req, &retval); 149 async_serialize_end(); 150 return retval; 151 } 152 153 async_wait_for(req, &retval); 154 155 async_serialize_end(); 146 156 147 157 if (retval != EOK) { … … 164 174 return phone; 165 175 176 async_serialize_start(); 177 166 178 ipc_call_t answer; 167 179 aid_t req = async_send_2(phone, DEVMAP_DEVICE_GET_HANDLE, flags, 0, … … 172 184 if (retval != EOK) { 173 185 async_wait_for(req, NULL); 174 return retval; 175 } 176 177 async_wait_for(req, &retval); 186 async_serialize_end(); 187 return retval; 188 } 189 190 async_wait_for(req, &retval); 191 192 async_serialize_end(); 178 193 179 194 if (retval != EOK) { … … 212 227 213 228 ipcarg_t count; 214 int retval = ipc_call_sync_0_1(phone, DEVMAP_DEVICE_GET_COUNT, &count);229 int retval = async_req_0_1(phone, DEVMAP_DEVICE_GET_COUNT, &count); 215 230 if (retval != EOK) 216 231 return 0; … … 226 241 return 0; 227 242 243 async_serialize_start(); 244 228 245 ipc_call_t answer; 229 246 aid_t req = async_send_0(phone, DEVMAP_DEVICE_GET_DEVICES, &answer); … … 233 250 if (retval != EOK) { 234 251 async_wait_for(req, NULL); 235 return 0; 236 } 237 238 async_wait_for(req, &retval); 252 async_serialize_end(); 253 return 0; 254 } 255 256 async_wait_for(req, &retval); 257 258 async_serialize_end(); 239 259 240 260 if (retval != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.