Changes in uspace/srv/devman/driver.c [81685dd9:39330200] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/driver.c
r81685dd9 r39330200 140 140 141 141 /* Check whether the driver's binary exists. */ 142 struct stat s;142 vfs_stat_t s; 143 143 if (vfs_stat_path(drv->binary_path, &s) != EOK) { 144 144 log_msg(LOG_DEFAULT, LVL_ERROR, "Driver not found at path `%s'.", … … 283 283 bool start_driver(driver_t *drv) 284 284 { 285 int rc;285 errno_t rc; 286 286 287 287 assert(fibril_mutex_is_locked(&drv->driver_mutex)); … … 306 306 * otherwise. 307 307 */ 308 int stop_driver(driver_t *drv)308 errno_t stop_driver(driver_t *drv) 309 309 { 310 310 async_exch_t *exch; 311 sysarg_t retval;311 errno_t retval; 312 312 313 313 log_msg(LOG_DEFAULT, LVL_DEBUG, "stop_driver(drv=\"%s\")", drv->name); … … 591 591 592 592 /* Send the device name to the driver. */ 593 sysarg_t rc = async_data_write_start(exch, dev->pfun->name,593 errno_t rc = async_data_write_start(exch, dev->pfun->name, 594 594 str_size(dev->pfun->name) + 1); 595 595 … … 618 618 } 619 619 620 int driver_dev_remove(dev_tree_t *tree, dev_node_t *dev)620 errno_t driver_dev_remove(dev_tree_t *tree, dev_node_t *dev) 621 621 { 622 622 async_exch_t *exch; 623 sysarg_t retval;623 errno_t retval; 624 624 driver_t *drv; 625 625 devman_handle_t handle; … … 641 641 } 642 642 643 int driver_dev_gone(dev_tree_t *tree, dev_node_t *dev)643 errno_t driver_dev_gone(dev_tree_t *tree, dev_node_t *dev) 644 644 { 645 645 async_exch_t *exch; 646 sysarg_t retval;646 errno_t retval; 647 647 driver_t *drv; 648 648 devman_handle_t handle; … … 664 664 } 665 665 666 int driver_fun_online(dev_tree_t *tree, fun_node_t *fun)666 errno_t driver_fun_online(dev_tree_t *tree, fun_node_t *fun) 667 667 { 668 668 async_exch_t *exch; 669 sysarg_t retval;669 errno_t retval; 670 670 driver_t *drv; 671 671 devman_handle_t handle; … … 692 692 } 693 693 694 int driver_fun_offline(dev_tree_t *tree, fun_node_t *fun)694 errno_t driver_fun_offline(dev_tree_t *tree, fun_node_t *fun) 695 695 { 696 696 async_exch_t *exch; 697 sysarg_t retval;697 errno_t retval; 698 698 driver_t *drv; 699 699 devman_handle_t handle; … … 721 721 722 722 /** Get list of registered drivers. */ 723 int driver_get_list(driver_list_t *driver_list, devman_handle_t *hdl_buf,723 errno_t driver_get_list(driver_list_t *driver_list, devman_handle_t *hdl_buf, 724 724 size_t buf_size, size_t *act_size) 725 725 { … … 753 753 754 754 /** Get list of device functions. */ 755 int driver_get_devices(driver_t *driver, devman_handle_t *hdl_buf,755 errno_t driver_get_devices(driver_t *driver, devman_handle_t *hdl_buf, 756 756 size_t buf_size, size_t *act_size) 757 757 {
Note:
See TracChangeset
for help on using the changeset viewer.