Changeset ea28272 in mainline for uspace/lib/c/generic/devman.c
- Timestamp:
- 2010-12-30T13:43:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d770deb
- Parents:
- d70d80ed (diff), f418e51 (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/lib/c/generic/devman.c
rd70d80ed rea28272 95 95 aid_t req = async_send_2(phone, DEVMAN_DRIVER_REGISTER, 0, 0, &answer); 96 96 97 ipcarg_t retval = async_data_write_start(phone, name, str_size(name));97 sysarg_t retval = async_data_write_start(phone, name, str_size(name)); 98 98 if (retval != EOK) { 99 99 async_wait_for(req, NULL); … … 104 104 async_set_client_connection(conn); 105 105 106 ipcarg_t callback_phonehash;106 sysarg_t callback_phonehash; 107 107 ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash); 108 108 async_wait_for(req, &retval); … … 116 116 { 117 117 ipc_call_t answer; 118 a sync_send_1(phone, DEVMAN_ADD_MATCH_ID, match_id->score, &answer);118 aid_t req = async_send_1(phone, DEVMAN_ADD_MATCH_ID, match_id->score, &answer); 119 119 int retval = async_data_write_start(phone, match_id->id, str_size(match_id->id)); 120 return retval; 120 async_wait_for(req, NULL); 121 return retval; 121 122 } 122 123 … … 154 155 aid_t req = async_send_2(phone, DEVMAN_ADD_CHILD_DEVICE, parent_handle, match_count, &answer); 155 156 156 ipcarg_t retval = async_data_write_start(phone, name, str_size(name));157 sysarg_t retval = async_data_write_start(phone, name, str_size(name)); 157 158 if (retval != EOK) { 158 159 async_wait_for(req, NULL); … … 191 192 aid_t req = async_send_1(phone, DEVMAN_ADD_DEVICE_TO_CLASS, devman_handle, &answer); 192 193 193 ipcarg_t retval = async_data_write_start(phone, class_name, str_size(class_name));194 sysarg_t retval = async_data_write_start(phone, class_name, str_size(class_name)); 194 195 if (retval != EOK) { 195 196 async_wait_for(req, NULL); … … 267 268 &answer); 268 269 269 ipcarg_t retval = async_data_write_start(phone, pathname, str_size(pathname));270 sysarg_t retval = async_data_write_start(phone, pathname, str_size(pathname)); 270 271 if (retval != EOK) { 271 272 async_wait_for(req, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.