|
libhd 5.0
|
Individual hardware item. More...
#include <hd.h>
Data Structures | |
| struct | is_s |
| struct | tag_s |
Data Fields | |
| struct s_hd_t * | next |
| Link to next hardware item. More... | |
| unsigned | idx |
| Unique index, starting at 1. More... | |
| unsigned | broken:1 |
| Hardware appears to be broken in some way. More... | |
| hd_id_t | bus |
| Bus type (id and name). More... | |
| unsigned | slot |
| Slot and bus number. More... | |
| unsigned | func |
| (PCI) function. More... | |
| hd_id_t | base_class |
| Base class (id and name). More... | |
| hd_id_t | sub_class |
| Sub class (id and name). More... | |
| hd_id_t | prog_if |
| (PCI) programming interface (id and name). More... | |
| hd_id_t | vendor |
| Vendor id and name. More... | |
| hd_id_t | device |
| Device id and name. More... | |
| hd_id_t | sub_vendor |
| Subvendor id and name. More... | |
| hd_id_t | sub_device |
| Subdevice id and name. More... | |
| hd_id_t | revision |
| Revision id or string. More... | |
| char * | serial |
| Serial id. More... | |
| hd_id_t | compat_vendor |
| Vendor id and name of some compatible hardware. More... | |
| hd_id_t | compat_device |
| Device id and name of some compatible hardware. More... | |
| hd_hw_item_t | hw_class |
| Hardware class. More... | |
| unsigned char | hw_class_list [(hw_all+7)/8] |
| Hardware class list. More... | |
| char * | model |
| Model name. More... | |
| unsigned | attached_to |
| Device this hardware is attached to. More... | |
| char * | sysfs_id |
| sysfs entry for this hardware, if any. More... | |
| char * | sysfs_bus_id |
| sysfs bus id for this hardware, if any. More... | |
| char * | sysfs_device_link |
| sysfs device link. More... | |
| char * | unix_dev_name |
| Special device file. More... | |
| hd_dev_num_t | unix_dev_num |
| Device type & number according to sysfs. More... | |
| str_list_t * | unix_dev_names |
| List of device names. More... | |
| char * | unix_dev_name2 |
| Special device file. More... | |
| hd_dev_num_t | unix_dev_num2 |
| Device type & number according to sysfs. More... | |
| char * | rom_id |
| BIOS/PROM id. More... | |
| char * | udi |
| HAL udi. More... | |
| char * | parent_udi |
| udi of parent (attached_to). More... | |
| char * | unique_id |
| Unique id for this hardware. More... | |
| str_list_t * | unique_ids |
| List of ids. More... | |
| unsigned | module |
| (Internal) Probing module that created this entry. More... | |
| unsigned | line |
| (Internal) Source code line where this entry was created. More... | |
| unsigned | count |
| (Internal) Counter, used in combination with hd_t::module and hd_t::line. More... | |
| hd_res_t * | res |
| Device resources. More... | |
| hd_detail_t * | detail |
| Special info associated with this hardware. More... | |
| str_list_t * | extra_info |
| (Internal) Unspecific text info. More... | |
| hd_status_t | status |
| Hardware status (if available). More... | |
| char * | config_string |
| Some config info. More... | |
| hd_hotplug_t | hotplug |
| Hotplug controller for this device. More... | |
| unsigned | hotplug_slot |
| Slot the hotplug device is connected to (e.g. More... | |
| struct s_hd_t::is_s | is |
| struct s_hd_t::tag_s | tag |
| unsigned char * | block0 |
| (Internal) First 512 bytes of block devices. More... | |
| char * | driver |
| Currently active driver. More... | |
| char * | driver_module |
| Currently active driver module (if any). More... | |
| str_list_t * | drivers |
| List of currently active drivers. More... | |
| str_list_t * | driver_modules |
| List of currently active driver modules. More... | |
| char * | old_unique_id |
| Old unique_id for compatibility. More... | |
| char * | parent_id |
| unique_id of parent (attached_to). More... | |
| str_list_t * | child_ids |
| unique_ids of children (parent_id). More... | |
| char * | unique_id1 |
| (Internal) location independent unique_id part. More... | |
| char * | usb_guid |
| USB Global Unique Identifier. More... | |
| driver_info_t * | driver_info |
| device driver info More... | |
| str_list_t *hal_prop_t * | hal_prop |
| packages/programs required for this hardware More... | |
| hal_prop_t * | persistent_prop |
| persistent property list More... | |
| char * | modalias |
| module alias More... | |
| char * | label |
| Consistent Device Name (CDN), pci firmware spec 3.1, chapter 4.6.7. More... | |
| unsigned | ref_cnt |
| (Internal) memory reference count. More... | |
| struct s_hd_t * | ref |
| (Internal) if set, this is only a reference. More... | |
Individual hardware item.
Every hardware component gets an hd_t entry. A list of all hardware items is in hd_data_t::hd.