Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 463e734 in mainline


Ignore:
Timestamp:
2010-12-04T20:36:56Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
4006447, 87b4baa
Parents:
42be09b
Message:

Serialization of devman::add_device

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

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/ipc.h

    r42be09b r463e734  
    4545/** Maximum active async calls per thread */
    4646#ifdef CONFIG_DEBUG
    47         #define IPC_MAX_ASYNC_CALLS  8
     47        #define IPC_MAX_ASYNC_CALLS  4
    4848#else
    4949        #define IPC_MAX_ASYNC_CALLS  4000
  • 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.