Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/driver.c

    r39330200 r81685dd9  
    140140       
    141141        /* Check whether the driver's binary exists. */
    142         vfs_stat_t s;
     142        struct stat s;
    143143        if (vfs_stat_path(drv->binary_path, &s) != EOK) {
    144144                log_msg(LOG_DEFAULT, LVL_ERROR, "Driver not found at path `%s'.",
     
    283283bool start_driver(driver_t *drv)
    284284{
    285         errno_t rc;
     285        int rc;
    286286
    287287        assert(fibril_mutex_is_locked(&drv->driver_mutex));
     
    306306 *                      otherwise.
    307307 */
    308 errno_t stop_driver(driver_t *drv)
     308int stop_driver(driver_t *drv)
    309309{
    310310        async_exch_t *exch;
    311         errno_t retval;
     311        sysarg_t retval;
    312312       
    313313        log_msg(LOG_DEFAULT, LVL_DEBUG, "stop_driver(drv=\"%s\")", drv->name);
     
    591591       
    592592        /* Send the device name to the driver. */
    593         errno_t rc = async_data_write_start(exch, dev->pfun->name,
     593        sysarg_t rc = async_data_write_start(exch, dev->pfun->name,
    594594            str_size(dev->pfun->name) + 1);
    595595       
     
    618618}
    619619
    620 errno_t driver_dev_remove(dev_tree_t *tree, dev_node_t *dev)
     620int driver_dev_remove(dev_tree_t *tree, dev_node_t *dev)
    621621{
    622622        async_exch_t *exch;
    623         errno_t retval;
     623        sysarg_t retval;
    624624        driver_t *drv;
    625625        devman_handle_t handle;
     
    641641}
    642642
    643 errno_t driver_dev_gone(dev_tree_t *tree, dev_node_t *dev)
     643int driver_dev_gone(dev_tree_t *tree, dev_node_t *dev)
    644644{
    645645        async_exch_t *exch;
    646         errno_t retval;
     646        sysarg_t retval;
    647647        driver_t *drv;
    648648        devman_handle_t handle;
     
    664664}
    665665
    666 errno_t driver_fun_online(dev_tree_t *tree, fun_node_t *fun)
     666int driver_fun_online(dev_tree_t *tree, fun_node_t *fun)
    667667{
    668668        async_exch_t *exch;
    669         errno_t retval;
     669        sysarg_t retval;
    670670        driver_t *drv;
    671671        devman_handle_t handle;
     
    692692}
    693693
    694 errno_t driver_fun_offline(dev_tree_t *tree, fun_node_t *fun)
     694int driver_fun_offline(dev_tree_t *tree, fun_node_t *fun)
    695695{
    696696        async_exch_t *exch;
    697         errno_t retval;
     697        sysarg_t retval;
    698698        driver_t *drv;
    699699        devman_handle_t handle;
     
    721721
    722722/** Get list of registered drivers. */
    723 errno_t driver_get_list(driver_list_t *driver_list, devman_handle_t *hdl_buf,
     723int driver_get_list(driver_list_t *driver_list, devman_handle_t *hdl_buf,
    724724    size_t buf_size, size_t *act_size)
    725725{
     
    753753
    754754/** Get list of device functions. */
    755 errno_t driver_get_devices(driver_t *driver, devman_handle_t *hdl_buf,
     755int driver_get_devices(driver_t *driver, devman_handle_t *hdl_buf,
    756756    size_t buf_size, size_t *act_size)
    757757{
Note: See TracChangeset for help on using the changeset viewer.