Changeset 7cfe5c0 in mainline for uspace/srv/devman/devman.c


Ignore:
Timestamp:
2012-08-20T19:16:24Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b99156
Parents:
b9cb911 (diff), 01e397ac (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged with mainline 0.5.0 changes.

File:
1 edited

Legend:

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

    rb9cb911 r7cfe5c0  
    10761076}
    10771077
    1078 
    10791078/** Find the device node structure of the device witch has the specified handle.
    10801079 *
     
    11631162        fun->state = FUN_INIT;
    11641163        atomic_set(&fun->refcnt, 0);
     1164        fibril_mutex_initialize(&fun->busy_lock);
    11651165        link_initialize(&fun->dev_functions);
    11661166        list_initialize(&fun->match_ids.ids);
     
    12031203        if (atomic_predec(&fun->refcnt) == 0)
    12041204                delete_fun_node(fun);
     1205}
     1206
     1207/** Make function busy for reconfiguration operations. */
     1208void fun_busy_lock(fun_node_t *fun)
     1209{
     1210        fibril_mutex_lock(&fun->busy_lock);
     1211}
     1212
     1213/** Mark end of reconfiguration operation. */
     1214void fun_busy_unlock(fun_node_t *fun)
     1215{
     1216        fibril_mutex_unlock(&fun->busy_lock);
    12051217}
    12061218
Note: See TracChangeset for help on using the changeset viewer.