enum resource_types type
Definition: hd.h:1792
str_list_t * read_file(char *file_name, unsigned start_line, unsigned lines)
Definition: hd.c:2528
hd_id_t base_class
Base class (id and name).
Definition: hd.h:2235
unsigned attached_to
Device this hardware is attached to.
Definition: hd.h:2330
hd_t * hd
Current hardware list.
Definition: hd.h:2614
str_list_t * search_str_list(str_list_t *sl, char *str)
Definition: hd.c:2465
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2712
int hd_is_sgi_altix(hd_data_t *hd_data)
Definition: hd.c:3139
@ sc_nif_ctc
Definition: hd.h:244
char * canon_str(char *s, int len)
Definition: hd.c:2192
@ res_phwaddr
Definition: hd.h:1641
@ sc_nif_escon
Definition: hd.h:245
char * new_str(const char *s)
Definition: hd.c:1578
str_list_t * read_dir(char *dir_name, int type)
Definition: hd.c:2577
#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:2225
hd_t * hd_find_sysfs_id(hd_data_t *hd_data, char *id)
Definition: hd.c:5701
str_list_t * drivers
List of currently active drivers.
Definition: hd.h:2541
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:2507
@ pr_net_eeprom
Definition: hd.h:126
@ sc_nif_hsi
Definition: hd.h:244
char * unix_dev_name
Special device file.
Definition: hd.h:2352
str_list_t * unix_dev_names
List of device names.
Definition: hd.h:2365
char * sysfs_device_link
sysfs device link.
Definition: hd.h:2345
Individual hardware item.
Definition: hd.h:2200
@ mod_net
Definition: hd_int.h:78
libhd resource union
Definition: hd.h:1826
@ sc_nif_tokenring
Definition: hd.h:243
struct s_hd_t * next
Link to next hardware item.
Definition: hd.h:2201
char * hd_sysfs_id(char *path)
Definition: hd.c:5992
hd_id_t device
Device id and name.
Definition: hd.h:2263
@ sc_nif_fddi
Definition: hd.h:243
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2494
@ bc_network
Definition: hd.h:162
enum resource_types type
Definition: hd.h:1687
hd_t * hd_get_device_by_idx(hd_data_t *hd_data, unsigned idx)
Definition: hd.c:2291
@ 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:1827
unsigned module
(Internal) the current probing module we are in
Definition: hd.h:2685
@ 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:5244
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1778
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:2751
@ bc_network_interface
Definition: hd.h:168
int hd_probe_feature(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:579
res_link_t link
Definition: hd.h:1843
@ 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:1798
char * sysfs_id
sysfs entry for this hardware, if any.
Definition: hd.h:2335
int hd_attr_uint(char *attr, uint64_t *u, int base)
Definition: hd.c:5961
@ res_hwaddr
Definition: hd.h:1641
hd_res_t * res
Device resources.
Definition: hd.h:2431
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:2240
@ 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:1793
hd_id_t vendor
Vendor id and name.
Definition: hd.h:2253
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:2219
unsigned fcoe_offload
fcoe offload capable device
Definition: hd.h:2506
@ sc_nif_ethernet
Definition: hd.h:243
unsigned idx
Unique index, starting at 1.
Definition: hd.h:2207
static hd_data_t * hd_data
Definition: pppoe.c:29
void str_printf(char **buf, int offset, char *format,...)
Definition: hd.c:2402
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:1770
char * hd_read_sysfs_link(char *base_dir, char *link_name)
Definition: hd.c:2632
@ res_link
Definition: hd.h:1641
@ sc_nif_xp
Definition: hd.h:245
str_list_t * add_str_list(str_list_t **sl, char *str)
Definition: hd.c:2480
unsigned storage_only
storage only network interface
Definition: hd.h:2508
hd_t * hd_find_sysfs_id_devname(hd_data_t *hd_data, char *id, char *devname)
Definition: hd.c:5715
unsigned state
network link state: 0 - not connected, 1 - connected
Definition: hd.h:1799
res_hwaddr_t hwaddr
Definition: hd.h:1842
#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:2416
Holds all data accumulated during hardware probing.
Definition: hd.h:2608
void * new_mem(size_t size)
Definition: hd.c:1536
@ sc_nif_myrinet
Definition: hd.h:245
str_list_t * net
(Internal) list of network interfaces
Definition: hd.h:2691
res_any_t any
Definition: hd.h:1828
char * str
Some string data.
Definition: hd.h:412
void * free_mem(void *p)
Definition: hd.c:1595
res_size_t size
Definition: hd.h:1834
char * get_sysfs_attr_by_path(const char *path, const char *attr)
Definition: hd.c:6059