Ignore:
File:
1 edited

Legend:

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

    r80a96d2 r3e6a98c5  
    3636
    3737#include <assert.h>
    38 #include <bool.h>
     38#include <stdbool.h>
    3939#include <dirent.h>
    4040#include <str.h>
     
    5252
    5353#define MATCH_EXT ".ma"
    54 #define DEVICE_BUCKETS 256
    5554
    5655#define LOC_DEVICE_NAMESPACE "devices"
     
    151150         * Used by the hash table of devices indexed by devman device handles.
    152151         */
    153         link_t devman_dev;
     152        ht_link_t devman_dev;
    154153       
    155154        /**
     
    174173        /** State */
    175174        fun_state_t state;
     175        /** Locked while performing reconfiguration operations */
     176        fibril_mutex_t busy_lock;
    176177       
    177178        /** The global unique identifier of the function */
     
    202203         * Used by the hash table of functions indexed by devman device handles.
    203204         */
    204         link_t devman_fun;
     205        ht_link_t devman_fun;
    205206       
    206207        /**
    207208         * Used by the hash table of functions indexed by service IDs.
    208209         */
    209         link_t loc_fun;
     210        ht_link_t loc_fun;
    210211};
    211 
    212212
    213213/** Represents device tree. */
     
    280280extern void dev_add_ref(dev_node_t *);
    281281extern void dev_del_ref(dev_node_t *);
     282
    282283extern dev_node_t *find_dev_node_no_lock(dev_tree_t *tree,
    283284    devman_handle_t handle);
     
    291292extern void fun_add_ref(fun_node_t *);
    292293extern void fun_del_ref(fun_node_t *);
     294extern void fun_busy_lock(fun_node_t *);
     295extern void fun_busy_unlock(fun_node_t *);
    293296extern fun_node_t *find_fun_node_no_lock(dev_tree_t *tree,
    294297    devman_handle_t handle);
Note: See TracChangeset for help on using the changeset viewer.