Changeset c3d9aaf5 in mainline for uspace/srv/devman/main.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/main.c

    ra796812c rc3d9aaf5  
    11/*
    2  * Copyright (c) 2023 Jiri Svoboda
     2 * Copyright (c) 2025 Jiri Svoboda
    33 * Copyright (c) 2010 Lenka Trochtova
    44 * All rights reserved.
     
    369369
    370370        printf("%s: Accepting connections.\n", NAME);
     371        log_msg(LOG_DEFAULT, LVL_NOTE, "Wait for device tree to stabilize.");
     372        dev_tree_wait_stable(&device_tree);
     373        log_msg(LOG_DEFAULT, LVL_NOTE, "Device tree stable.");
    371374        task_retval(0);
    372375        async_manager();
Note: See TracChangeset for help on using the changeset viewer.