Changes in uspace/srv/devman/devman.c [ebcb05a:c7bbf029] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devman.c
rebcb05a rc7bbf029 39 39 #include <devmap.h> 40 40 #include <str_error.h> 41 #include <stdio.h> 41 42 42 43 #include "devman.h" … … 555 556 } 556 557 557 /** Remember the driver's phone.558 *559 * @param driver The driver.560 * @param phone The phone to the driver.561 */562 void set_driver_phone(driver_t *driver, sysarg_t phone)563 {564 fibril_mutex_lock(&driver->driver_mutex);565 assert(driver->state == DRIVER_STARTING);566 driver->phone = phone;567 fibril_mutex_unlock(&driver->driver_mutex);568 }569 570 558 /** Notify driver about the devices to which it was assigned. 571 559 * … … 685 673 list_initialize(&drv->devices); 686 674 fibril_mutex_initialize(&drv->driver_mutex); 675 drv->phone = -1; 687 676 } 688 677
Note:
See TracChangeset
for help on using the changeset viewer.