Ignore:
File:
1 edited

Legend:

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

    r5e801dc r0db0df2  
    11/*
     2 * Copyright (c) 2025 Jiri Svoboda
    23 * Copyright (c) 2010 Lenka Trochtova
    34 * All rights reserved.
     
    3132 */
    3233
    33 #include <errno.h>
    3434#include <io/log.h>
    3535
     
    6060}
    6161
    62 static bool devman_devices_key_equal(const void *key, const ht_link_t *item)
     62static bool devman_devices_key_equal(const void *key, size_t hash, const ht_link_t *item)
    6363{
    6464        const devman_handle_t *handle = key;
     
    6767}
    6868
    69 static bool devman_functions_key_equal(const void *key, const ht_link_t *item)
     69static bool devman_functions_key_equal(const void *key, size_t hash, const ht_link_t *item)
    7070{
    7171        const devman_handle_t *handle = key;
     
    8686}
    8787
    88 static bool loc_functions_key_equal(const void *key, const ht_link_t *item)
     88static bool loc_functions_key_equal(const void *key, size_t hash, const ht_link_t *item)
    8989{
    9090        const service_id_t *service_id = key;
     
    9393}
    9494
    95 static hash_table_ops_t devman_devices_ops = {
     95static const hash_table_ops_t devman_devices_ops = {
    9696        .hash = devman_devices_hash,
    9797        .key_hash = handle_key_hash,
     
    101101};
    102102
    103 static hash_table_ops_t devman_functions_ops = {
     103static const hash_table_ops_t devman_functions_ops = {
    104104        .hash = devman_functions_hash,
    105105        .key_hash = handle_key_hash,
     
    109109};
    110110
    111 static hash_table_ops_t loc_devices_ops = {
     111static const hash_table_ops_t loc_devices_ops = {
    112112        .hash = loc_functions_hash,
    113113        .key_hash = service_id_key_hash,
     
    314314}
    315315
     316/** Wait for device tree to stabilize.
     317 *
     318 * Blocks until the entire device tree had a chance to finish attaching
     319 * all devices.
     320 *
     321 * @param tree Device tree
     322 */
     323void dev_tree_wait_stable(dev_tree_t *tree)
     324{
     325        dev_wait_stable(tree->root_node->child);
     326}
     327
    316328/** @}
    317329 */
Note: See TracChangeset for help on using the changeset viewer.