Changeset c16cf62 in mainline for uspace/srv/devman/main.c
- Timestamp:
- 2010-02-26T14:22:33Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67ba309
- Parents:
- 92413de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/main.c
r92413de rc16cf62 60 60 61 61 /** 62 *63 *64 * Driver's mutex must be locked.65 */66 static void pass_devices_to_driver(driver_t *driver)67 {68 69 70 71 72 }73 74 static void init_running_driver(driver_t *driver)75 {76 fibril_mutex_lock(&driver->driver_mutex);77 78 // pass devices which have been already assigned to the driver to the driver79 pass_devices_to_driver(driver);80 81 // change driver's state to running82 driver->state = DRIVER_RUNNING;83 84 fibril_mutex_unlock(&driver->driver_mutex);85 }86 87 /**88 62 * Register running driver. 89 63 */ … … 134 108 } 135 109 136 fibril_mutex_lock(&driver->driver_mutex); 137 assert(DRIVER_STARTING == driver->state); 138 driver->phone = IPC_GET_ARG5(call); 139 fibril_mutex_unlock(&driver->driver_mutex); 110 // remember driver's phone 111 set_driver_phone(driver, IPC_GET_ARG5(call)); 140 112 141 113 printf(NAME ": the %s driver was successfully registered as running.\n", driver->name); … … 160 132 return; 161 133 162 init _running_driver(driver);134 initialize_running_driver(driver); 163 135 164 136 ipc_callid_t callid; … … 251 223 return 0; 252 224 } 225 226 /** @} 227 */
Note:
See TracChangeset
for help on using the changeset viewer.