enum resource_types type
Definition: hd.h:1793
str_list_t * read_file(char *file_name, unsigned start_line, unsigned lines)
Definition: hd.c:2544
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2236
unsigned attached_to
Device this hardware is attached to.
Definition: hd.h:2331
hd_t * hd
Current hardware list.
Definition: hd.h:2615
str_list_t * search_str_list(str_list_t *sl, char *str)
Definition: hd.c:2481
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2728
int hd_is_sgi_altix(hd_data_t *hd_data)
Definition: hd.c:3157
@ sc_nif_ctc
Definition: hd.h:244
char * canon_str(char *s, int len)
Definition: hd.c:2208
@ res_phwaddr
Definition: hd.h:1642
@ sc_nif_escon
Definition: hd.h:245
char * new_str(const char *s)
Definition: hd.c:1594
str_list_t * read_dir(char *dir_name, int type)
Definition: hd.c:2593
#define PROGRESS(a, b, c)
Definition: hd_int.h:65
static void get_ethtool_priv(hd_data_t *hd_data, hd_t *hd)
Definition: net.c:445
struct s_str_list_t * next
Link to next member.
Definition: hd.h:411
unsigned slot
Slot and bus number.
Definition: hd.h:2226
hd_t * hd_find_sysfs_id(hd_data_t *hd_data, char *id)
Definition: hd.c:5740
str_list_t * drivers
List of currently active drivers.
Definition: hd.h:2542
static void get_driverinfo(hd_data_t *hd_data, hd_t *hd)
Definition: net.c:523
unsigned iscsi_offload
iscsi offload capable device
Definition: hd.h:2508
@ pr_net_eeprom
Definition: hd.h:126
@ sc_nif_hsi
Definition: hd.h:244
char * unix_dev_name
Special device file.
Definition: hd.h:2353
str_list_t * unix_dev_names
List of device names.
Definition: hd.h:2366
char * sysfs_device_link
sysfs device link.
Definition: hd.h:2346
Individual hardware item.
Definition: hd.h:2201
@ mod_net
Definition: hd_int.h:78
libhd resource union
Definition: hd.h:1827
@ sc_nif_tokenring
Definition: hd.h:243
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2202
char * hd_sysfs_id(char *path)
Definition: hd.c:6031
hd_id_t device
Device id and name.
Definition: hd.h:2264
@ sc_nif_fddi
Definition: hd.h:243
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2510
@ bc_network
Definition: hd.h:162
enum resource_types type
Definition: hd.h:1688
hd_t * hd_get_device_by_idx(hd_data_t *hd_data, unsigned idx)
Definition: hd.c:2307
@ hw_network_ctrl
Definition: hd.h:143
static void get_linkstate(hd_data_t *hd_data, hd_t *hd)
Definition: net.c:556
union u_hd_res_t * next
Definition: hd.h:1828
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2686
@ sc_nif_other
Definition: hd.h:246
@ sc_nif_usb
Definition: hd.h:246
#define ADD2LOG(a...)
Definition: hd_int.h:66
void hd_scan_net(hd_data_t *hd_data)
Definition: net.c:50
String list type.
Definition: hd.h:410
void hd_set_hw_class(hd_t *hd, hd_hw_item_t hw_class)
Definition: hd.c:5255
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1794
static void add_kma(hd_data_t *hdata)
Definition: net.c:738
@ sc_nif_wlan
Definition: hd.h:245
int hd_module_is_active(hd_data_t *hd_data, char *mod)
Definition: hd.c:2767
@ bc_network_interface
Definition: hd.h:168
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:595
res_link_t link
Definition: hd.h:1844
@ pr_net
Definition: hd.h:113
#define MAKE_ID(tag, id_val)
Combine tag and id value.
Definition: hd.h:105
static void add_if_name(hd_t *hd_card, hd_t *hd)
Definition: net.c:780
@ sc_nif_loopback
Definition: hd.h:243
static hd_res_t * get_phwaddr(hd_data_t *hd_data, hd_t *hd)
Definition: net.c:591
unsigned id
Numeric id.
Definition: hd.h:401
enum resource_types type
Definition: hd.h:1799
char * sysfs_id
sysfs entry for this hardware, if any.
Definition: hd.h:2336
int hd_attr_uint(char *attr, uint64_t *u, int base)
Definition: hd.c:6000
@ res_hwaddr
Definition: hd.h:1642
hd_res_t * res
Device resources.
Definition: hd.h:2432
static void add_xpnet(hd_data_t *hdata)
Definition: net.c:646
hd_id_t sub_class
Sub class (id and name).
Definition: hd.h:2241
@ sc_nif_iucv
Definition: hd.h:244
@ bus_none
Definition: hd.h:297
@ sc_nif_qeth
Definition: hd.h:244
char * addr
Definition: hd.h:1794
hd_id_t vendor
Vendor id and name.
Definition: hd.h:2254
char * name
Name (if any) that corresponds to hd_id_t::id.
Definition: hd.h:402
hd_id_t bus
Bus type (id and name).
Definition: hd.h:2220
unsigned fcoe_offload
fcoe offload capable device
Definition: hd.h:2507
@ sc_nif_ethernet
Definition: hd.h:243
unsigned idx
Unique index, starting at 1.
Definition: hd.h:2208
static hd_data_t * hd_data
Definition: pppoe.c:29
void str_printf(char **buf, int offset, char *format,...)
Definition: hd.c:2418
static void add_uml(hd_data_t *hdata)
Definition: net.c:696
hd_res_t * add_res_entry(hd_res_t **res, hd_res_t *new_res)
Definition: hd.c:1786
char * hd_read_sysfs_link(char *base_dir, char *link_name)
Definition: hd.c:2648
@ res_link
Definition: hd.h:1642
@ sc_nif_xp
Definition: hd.h:245
str_list_t * add_str_list(str_list_t **sl, char *str)
Definition: hd.c:2496
unsigned storage_only
storage only network interface
Definition: hd.h:2509
hd_t * hd_find_sysfs_id_devname(hd_data_t *hd_data, char *id, char *devname)
Definition: hd.c:5754
unsigned state
network link state: 0 - not connected, 1 - connected
Definition: hd.h:1800
res_hwaddr_t hwaddr
Definition: hd.h:1843
#define TAG_SPECIAL
Internally used ids.
Definition: hd.h:88
@ sc_nif_sit
Definition: hd.h:246
unsigned module
(Internal) Probing module that created this entry.
Definition: hd.h:2417
Holds all data accumulated during hardware probing.
Definition: hd.h:2609
void * new_mem(size_t size)
Definition: hd.c:1552
@ sc_nif_myrinet
Definition: hd.h:245
str_list_t * net
(Internal) list of network interfaces
Definition: hd.h:2692
res_any_t any
Definition: hd.h:1829
char * str
Some string data.
Definition: hd.h:412
void * free_mem(void *p)
Definition: hd.c:1611
res_size_t size
Definition: hd.h:1835
char * get_sysfs_attr_by_path(const char *path, const char *attr)
Definition: hd.c:6098