Changes in uspace/srv/devman/devman.c [463e734:96b02eb9] in mainline
- File:
-
- 1 edited
-
uspace/srv/devman/devman.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
r463e734 r96b02eb9 498 498 * @param phone The phone to the driver. 499 499 */ 500 void set_driver_phone(driver_t *driver, ipcarg_t phone)500 void set_driver_phone(driver_t *driver, sysarg_t phone) 501 501 { 502 502 fibril_mutex_lock(&driver->driver_mutex); … … 678 678 } 679 679 680 static FIBRIL_MUTEX_INITIALIZE(add_device_guard);681 682 680 /** Pass a device to running driver. 683 681 * … … 687 685 void add_device(int phone, driver_t *drv, node_t *node, dev_tree_t *tree) 688 686 { 689 fibril_mutex_lock(&add_device_guard);690 691 687 /* 692 688 * We do not expect to have driver's mutex locked as we do not … … 696 692 node->name); 697 693 698 ipcarg_t rc;694 sysarg_t rc; 699 695 ipc_call_t answer; 700 696 … … 719 715 /* Wait for answer from the driver. */ 720 716 async_wait_for(req, &rc); 721 722 fibril_mutex_unlock(&add_device_guard);723 717 724 718 switch(rc) { … … 766 760 start_driver(drv); 767 761 } 768 fibril_mutex_unlock(&drv->driver_mutex);769 770 fibril_mutex_lock(&drv->driver_mutex);771 762 bool is_running = drv->state == DRIVER_RUNNING; 772 763 fibril_mutex_unlock(&drv->driver_mutex);
Note:
See TracChangeset
for help on using the changeset viewer.
