Changeset 463e734 in mainline for uspace/srv/devman/devman.c


Ignore:
Timestamp:
2010-12-04T20:36:56Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4006447, 87b4baa
Parents:
42be09b
Message:

Serialization of devman::add_device

Also, the kernel limit for IPC messages was descreased back to 4.

File:
1 edited

Legend:

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

    r42be09b r463e734  
    678678}
    679679
     680static FIBRIL_MUTEX_INITIALIZE(add_device_guard);
    680681
    681682/** Pass a device to running driver.
     
    686687void add_device(int phone, driver_t *drv, node_t *node, dev_tree_t *tree)
    687688{
     689        fibril_mutex_lock(&add_device_guard);
     690
    688691        /*
    689692         * We do not expect to have driver's mutex locked as we do not
     
    716719        /* Wait for answer from the driver. */
    717720        async_wait_for(req, &rc);
     721
     722        fibril_mutex_unlock(&add_device_guard);
    718723
    719724        switch(rc) {
Note: See TracChangeset for help on using the changeset viewer.