Changeset c3d9aaf5 in mainline for uspace/srv/devman/devtree.c


Ignore:
Timestamp:
2025-02-03T15:52:08Z (6 days ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
b1490d2
Parents:
a796812c
Message:

Determine when device (sub)tree is stable.

Devman will only return value when the entire device tree is stable.

File:
1 edited

Legend:

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

    ra796812c rc3d9aaf5  
    11/*
     2 * Copyright (c) 2025 Jiri Svoboda
    23 * Copyright (c) 2010 Lenka Trochtova
    34 * All rights reserved.
     
    314315}
    315316
     317/** Wait for device tree to stabilize.
     318 *
     319 * Blocks until the entire device tree had a chance to finish attaching
     320 * all devices.
     321 *
     322 * @param tree Device tree
     323 */
     324void dev_tree_wait_stable(dev_tree_t *tree)
     325{
     326        dev_wait_stable(tree->root_node->child);
     327}
     328
    316329/** @}
    317330 */
Note: See TracChangeset for help on using the changeset viewer.