Changes in uspace/srv/devman/devtree.c [0db0df2:5e801dc] in mainline
- File:
-
- 1 edited
-
uspace/srv/devman/devtree.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/devtree.c
r0db0df2 r5e801dc 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda3 2 * Copyright (c) 2010 Lenka Trochtova 4 3 * All rights reserved. … … 32 31 */ 33 32 33 #include <errno.h> 34 34 #include <io/log.h> 35 35 … … 60 60 } 61 61 62 static bool devman_devices_key_equal(const void *key, size_t hash,const ht_link_t *item)62 static bool devman_devices_key_equal(const void *key, const ht_link_t *item) 63 63 { 64 64 const devman_handle_t *handle = key; … … 67 67 } 68 68 69 static bool devman_functions_key_equal(const void *key, size_t hash,const ht_link_t *item)69 static bool devman_functions_key_equal(const void *key, const ht_link_t *item) 70 70 { 71 71 const devman_handle_t *handle = key; … … 86 86 } 87 87 88 static bool loc_functions_key_equal(const void *key, size_t hash,const ht_link_t *item)88 static bool loc_functions_key_equal(const void *key, const ht_link_t *item) 89 89 { 90 90 const service_id_t *service_id = key; … … 93 93 } 94 94 95 static consthash_table_ops_t devman_devices_ops = {95 static hash_table_ops_t devman_devices_ops = { 96 96 .hash = devman_devices_hash, 97 97 .key_hash = handle_key_hash, … … 101 101 }; 102 102 103 static consthash_table_ops_t devman_functions_ops = {103 static hash_table_ops_t devman_functions_ops = { 104 104 .hash = devman_functions_hash, 105 105 .key_hash = handle_key_hash, … … 109 109 }; 110 110 111 static consthash_table_ops_t loc_devices_ops = {111 static hash_table_ops_t loc_devices_ops = { 112 112 .hash = loc_functions_hash, 113 113 .key_hash = service_id_key_hash, … … 314 314 } 315 315 316 /** Wait for device tree to stabilize.317 *318 * Blocks until the entire device tree had a chance to finish attaching319 * all devices.320 *321 * @param tree Device tree322 */323 void dev_tree_wait_stable(dev_tree_t *tree)324 {325 dev_wait_stable(tree->root_node->child);326 }327 328 316 /** @} 329 317 */
Note:
See TracChangeset
for help on using the changeset viewer.
