device - an abstract representation of a device
The devices in a system form a tree. All devices except root_bus have a parent (see device_get_parent9). In addition, any device can have children attached to it (see device_add_child9, device_add_child_ordered9, device_find_child9, device_get_children9, and device_delete_child9).
A device which has been successfully probed and attached to the system will also have a driver (see device_get_driver9 and driver(9)) and a devclass (see device_get_devclass9 and devclass(9)). Various other attributes of the device include a unit number (see device_get_unit9), verbose description (normally supplied by the driver, see device_set_desc9 and device_get_desc9), a set of bus-specific variables (see device_get_ivars9) and a set of driver-specific variables (see device_get_softc9).
Devices can be in one of several states:
The current state of the device can be determined by calling device_get_state9.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |