Changeset c3d9aaf5 in mainline for uspace/srv/devman/devman.h


Ignore:
Timestamp:
2025-02-03T15:52:08Z (19 hours 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/devman.h

    ra796812c rc3d9aaf5  
    11/*
     2 * Copyright (c) 2025 Jiri Svoboda
    23 * Copyright (c) 2010 Lenka Trochtova
    3  * Copyright (c) 2011 Jiri Svoboda
    44 * All rights reserved.
    55 *
     
    105105typedef enum {
    106106        DEVICE_NOT_INITIALIZED = 0,
     107        DEVICE_ATTACHING,
    107108        DEVICE_USABLE,
    108109        DEVICE_NOT_PRESENT,
     
    129130        /** The state of the device. */
    130131        device_state_t state;
     132        /** Protect device state field */
     133        fibril_mutex_t state_lock;
     134        /** Signalled when device state changes */
     135        fibril_condvar_t state_cv;
    131136        /** Link to list of devices owned by driver (driver_t.devices) */
    132137        link_t driver_devices;
Note: See TracChangeset for help on using the changeset viewer.