Changeset c16cf62 in mainline for uspace/srv/devman/main.c


Ignore:
Timestamp:
2010-02-26T14:22:33Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
67ba309
Parents:
92413de
Message:

backup (unstable)

File:
1 edited

Legend:

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

    r92413de rc16cf62  
    6060
    6161/**
    62  *
    63  *
    64  * Driver's mutex must be locked.
    65  */
    66 static void pass_devices_to_driver(driver_t *driver)
    67 {
    68        
    69 
    70        
    71        
    72 }
    73 
    74 static void init_running_driver(driver_t *driver)
    75 {
    76         fibril_mutex_lock(&driver->driver_mutex);
    77        
    78         // pass devices which have been already assigned to the driver to the driver
    79         pass_devices_to_driver(driver);
    80        
    81         // change driver's state to running
    82         driver->state = DRIVER_RUNNING;
    83        
    84         fibril_mutex_unlock(&driver->driver_mutex);
    85 }
    86 
    87 /**
    8862 * Register running driver.
    8963 */
     
    134108        }
    135109       
    136         fibril_mutex_lock(&driver->driver_mutex);
    137         assert(DRIVER_STARTING == driver->state);
    138         driver->phone = IPC_GET_ARG5(call);     
    139         fibril_mutex_unlock(&driver->driver_mutex);     
     110        // remember driver's phone
     111        set_driver_phone(driver, IPC_GET_ARG5(call));
    140112       
    141113        printf(NAME ":  the %s driver was successfully registered as running.\n", driver->name);
     
    160132                return;
    161133               
    162         init_running_driver(driver);
     134        initialize_running_driver(driver);
    163135       
    164136        ipc_callid_t callid;
     
    251223        return 0;
    252224}
     225
     226/** @}
     227 */
Note: See TracChangeset for help on using the changeset viewer.