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