libhd  5.0
hd_int.h
Go to the documentation of this file.
1 #define PROC_CMDLINE "/proc/cmdline"
2 #define PROC_PCI_DEVICES "/proc/bus/pci/devices"
3 #define PROC_PCI_BUS "/proc/bus/pci"
4 #define PROC_CPUINFO "/proc/cpuinfo"
5 #define PROC_IOPORTS "/proc/ioports"
6 #define PROC_DMA "/proc/dma"
7 #define PROC_INTERRUPTS "/proc/interrupts"
8 #define PROC_NVRAM_22 "/proc/driver/nvram"
9 #define PROC_NVRAM_24 "/proc/nvram"
10 #define PROC_IDE "/proc/ide"
11 #define PROC_SCSI "/proc/scsi"
12 #define PROC_CDROM_INFO "/proc/sys/dev/cdrom/info"
13 #define PROC_NET_IF_INFO "/proc/net/dev"
14 #define PROC_MODULES "/proc/modules"
15 #define PROC_DRIVER_SERIAL "/proc/tty/driver/serial"
16 #define PROC_DRIVER_MACSERIAL "/proc/tty/driver/macserial"
17 #define PROC_PARPORT_22 "/proc/parport/" /* Final '/' is essential! */
18 #define PROC_PARPORT_24 "/proc/sys/dev/parport/parport"
19 #define PROC_KCORE "/proc/kcore"
20 // #define PROC_USB_DEVICES "/proc/bus/usb/devices"
21 #define PROC_USB_DEVICES "/proc/bus/usb/devices_please-use-sysfs-instead"
22 #define PROC_PROM "/proc/device-tree"
23 #define PROC_MEMINFO "/proc/meminfo"
24 #define PROC_VERSION "/proc/version"
25 #define PROC_ISAPNP "/proc/isapnp"
26 #define PROC_PARTITIONS "/proc/partitions"
27 #define PROC_APM "/proc/apm"
28 #define PROC_XEN_BALLOON "/proc/xen/balloon"
29 
30 #define DEV_NVRAM "/dev/nvram"
31 #define DEV_PSAUX "/dev/psaux"
32 #define DEV_ADBMOUSE "/dev/adbmouse"
33 #define DEV_MEM "/dev/mem"
34 #define DEV_KBD "/dev/kbd"
35 #define DEV_CONSOLE "/dev/console"
36 #define DEV_OPENPROM "/dev/openprom"
37 #define DEV_SUNMOUSE "/dev/sunmouse"
38 #define DEV_MICE "/dev/input/mice"
39 #define DEV_FB "/dev/fb"
40 #define DEV_FB0 "/dev/fb0"
41 
42 #define PROG_MODPROBE "/sbin/modprobe"
43 #define PROG_RMMOD "/sbin/rmmod"
44 #define PROG_CARDCTL "/sbin/cardctl"
45 #define PROG_UDEVINFO "/usr/bin/udevinfo"
46 #define PROG_UDEVADM "/sbin/udevadm"
47 
48 #define KLOG_BOOT "/var/log/boot.msg"
49 #define ISAPNP_CONF "/etc/isapnp.conf"
50 
51 #define KERNEL_22 0x020200
52 #define KERNEL_24 0x020400
53 #define KERNEL_26 0x020600
54 
55 #if defined(__s390__) || defined(__s390x__) || defined(__alpha__) || defined(LIBHD_TINY)
56 #define WITH_ISDN 0
57 #else
58 #define WITH_ISDN 1
59 #endif
60 
61 #define PROGRESS(a, b, c) progress(hd_data, a, b, c)
62 #define ADD2LOG(a...) hd_log_printf(hd_data, a)
63 
64 /*
65  * define to make (hd_t).unique_id a hex string, otherwise it is a
66  * base64-like string
67  */
68 #undef NUMERIC_UNIQUE_ID
69 
70 /*
71  * Internal probing module numbers. Use mod_name_by_idx() outside of libhd.
72  */
73 enum mod_idx {
80 };
81 
82 void *new_mem(size_t size);
83 void *resize_mem(void *, size_t);
84 void *add_mem(void *, size_t, size_t);
85 char *new_str(const char *);
86 void *free_mem(void *);
87 int have_common_res(hd_res_t *res1, hd_res_t *res2);
88 void join_res_io(hd_res_t **res1, hd_res_t *res2);
89 void join_res_irq(hd_res_t **res1, hd_res_t *res2);
90 void join_res_dma(hd_res_t **res1, hd_res_t *res2);
92 hd_res_t *add_res_entry(hd_res_t **res, hd_res_t *new_res);
93 hd_t *add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count);
95 scsi_t *free_scsi(scsi_t *scsi, int free_all);
98 void hd_add_id(hd_data_t *hd_data, hd_t *hd);
99 
100 char *isa_id2str(unsigned);
101 char *eisa_vendor_str(unsigned);
102 unsigned name2eisa_id(char *);
103 char *canon_str(char *, int);
104 
105 int hex(char *string, int digits);
106 
107 void hd_log(hd_data_t *hd_data, char *buf, ssize_t len);
108 void hd_log_printf(hd_data_t *hd_data, char *format, ...) __attribute__ ((format (printf, 2, 3)));
109 void hd_log_hex(hd_data_t *hd_data, int with_ascii, unsigned data_len, unsigned char *data);
110 
111 void str_printf(char **buf, int offset, char *format, ...) __attribute__ ((format (printf, 3, 4)));
112 void hexdump(char **buf, int with_ascii, unsigned data_len, unsigned char *data);
113 str_list_t *search_str_list(str_list_t *sl, char *str);
114 str_list_t *add_str_list(str_list_t **sl, char *str);
117 str_list_t *read_file(char *file_name, unsigned start_line, unsigned lines);
118 str_list_t *read_dir(char *dir_name, int type);
119 char *hd_read_sysfs_link(char *base_dir, char *link_name);
120 void progress(hd_data_t *hd_data, unsigned pos, unsigned count, char *msg);
121 
124 
126 
127 int str2float(char *s, int n);
128 char *float2str(int i, int n);
129 
130 /* return the file name of a module */
131 char *mod_name_by_idx(unsigned idx);
132 
133 int hd_timeout(void(*func)(void *), void *arg, int timeout);
134 
136 char *get_cmd_param(hd_data_t *hd_data, int field);
137 
138 #ifdef __i386__
139 /* smp/smp.c */
140 int detectSMP(void);
141 #endif
142 
144 int run_cmd(hd_data_t *hd_data, char *cmd);
145 int load_module_with_params(hd_data_t *hd_data, char *module, char *params);
146 int load_module(hd_data_t *hd_data, char *module);
148 int probe_module(hd_data_t *hd_data, char *module);
149 
150 int cmp_hd(hd_t *hd1, hd_t *hd2);
152 
154 
157 
158 unsigned char *read_block0(hd_data_t *hd_data, char *dev, int *timeout);
159 
160 void hd_copy(hd_t *dst, hd_t *src);
161 
162 /* parameter for gather_resources(,,, which) */
163 #define W_IO (1 << 0)
164 #define W_DMA (1 << 1)
165 #define W_IRQ (1 << 2)
166 
167 void gather_resources(misc_t *m, hd_res_t **r, char *name, unsigned which);
168 
169 char *vend_id2str(unsigned vend);
170 
171 int hd_getdisksize(hd_data_t *hd_data, char *dev, int fd, hd_res_t **geo, hd_res_t **size);
172 
173 str_list_t *hd_split(char del, const char *str);
174 char *hd_join(char *del, str_list_t *str);
175 
176 int is_pnpinfo(ser_device_t *mi, int ofs);
177 
179 
180 void hd_fork(hd_data_t *hd_data, int timeout, int total_timeout);
185 void *hd_shm_add(hd_data_t *hd_data, void *ptr, unsigned len);
186 int hd_is_shm_ptr(hd_data_t *hd_data, void *ptr);
188 
190 
192 hd_t *hd_find_sysfs_id_devname(hd_data_t *hd_data, char *id, char *devname);
193 int hd_attr_uint(char* attr, uint64_t* u, int base);
194 str_list_t *hd_attr_list(char *str);
195 char *hd_sysfs_id(char *path);
196 char *hd_sysfs_name2_dev(char *str);
197 char *hd_sysfs_dev2_name(char *str);
199 char *hd_sysfs_find_driver(hd_data_t *hd_data, char *sysfs_id, int exact);
202 
203 char* get_sysfs_attr(const char* bus, const char* device, const char* attr);
204 char *get_sysfs_attr_by_path(const char *path, const char *attr);
205 char *get_sysfs_attr_by_path2(const char *path, const char *attr, unsigned *len);
206 
207 void hd_pci_complete_data(hd_t *hd);
209 
211 char *hd_hal_print_prop(hal_prop_t *prop);
212 
213 void hal_invalidate(hal_prop_t *prop);
214 void hal_invalidate_all(hal_prop_t *prop, const char *key);
215 hal_prop_t *hal_get_any(hal_prop_t *prop, const char *key);
216 hal_prop_t *hal_get_bool(hal_prop_t *prop, const char *key);
217 hal_prop_t *hal_get_int32(hal_prop_t *prop, const char *key);
218 hal_prop_t *hal_get_str(hal_prop_t *prop, const char *key);
219 hal_prop_t *hal_get_list(hal_prop_t *prop, const char *key);
220 char *hal_get_useful_str(hal_prop_t *prop, const char *key);
221 
224 
225 char *hd_get_hddb_dir(void);
226 char *hd_get_hddb_path(char *sub);
227 
228 int hd_mod_cmp(char *str1, char *str2);
229 
233 
234 str_list_t *sort_str_list(str_list_t *sl0, int (*cmp_func)(const void *, const void *));
235 
236 
237 #ifdef __cplusplus
238 }
239 #endif
240 
have_common_res
int have_common_res(hd_res_t *res1, hd_res_t *res2)
Definition: hd.c:1692
mod_sysfs
@ mod_sysfs
Definition: hd_int.h:79
get_cmdline
str_list_t * get_cmdline(hd_data_t *hd_data, char *key)
Definition: hd.c:3576
get_cmd_param
char * get_cmd_param(hd_data_t *hd_data, int field)
Definition: hd.c:3631
hd_pci_read_data
void hd_pci_read_data(hd_data_t *hd_data)
Definition: pci.c:124
hd_log_hex
void void hd_log_hex(hd_data_t *hd_data, int with_ascii, unsigned data_len, unsigned char *data)
Definition: hd.c:2377
read_file
str_list_t * read_file(char *file_name, unsigned start_line, unsigned lines)
Definition: hd.c:2527
hal_get_bool
hal_prop_t * hal_get_bool(hal_prop_t *prop, const char *key)
Definition: hal.c:289
hd_getdisksize
int hd_getdisksize(hd_data_t *hd_data, char *dev, int fd, hd_res_t **geo, hd_res_t **size)
Definition: hd.c:5002
mod_bios
@ mod_bios
Definition: hd_int.h:75
hal_invalidate_all
void hal_invalidate_all(hal_prop_t *prop, const char *key)
Definition: hal.c:271
mod_isapnp
@ mod_isapnp
Definition: hd_int.h:74
is_pcmcia_ctrl
int is_pcmcia_ctrl(hd_data_t *hd_data, hd_t *hd)
Definition: hd.c:5172
free_scsi
scsi_t * free_scsi(scsi_t *scsi, int free_all)
Definition: hd.c:1472
mod_floppy
@ mod_floppy
Definition: hd_int.h:75
s_ser_device_t
Serial device configuration information.
Definition: hd.h:1894
free_devtree
devtree_t * free_devtree(hd_data_t *hd_data)
Definition: hd.c:4287
mod_edd
@ mod_edd
Definition: hd_int.h:79
run_cmd
int run_cmd(hd_data_t *hd_data, char *cmd)
Definition: hd.c:3800
mod_prom
@ mod_prom
Definition: hd_int.h:77
mod_manual
@ mod_manual
Definition: hd_int.h:78
misc_t
Definition: hd.h:1871
s_str_list_t::search_str_list
str_list_t * search_str_list(str_list_t *sl, char *str)
Definition: hd.c:2464
str_printf
void str_printf(char **buf, int offset, char *format,...) __attribute__((format(printf
remove_hd_entries
void remove_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2711
hd_detail_t
Definition: hd.h:2141
hd_sysfs_find_driver
char * hd_sysfs_find_driver(hd_data_t *hd_data, char *sysfs_id, int exact)
Definition: block.c:388
mod_mouse
@ mod_mouse
Definition: hd_int.h:75
canon_str
char * canon_str(char *, int)
Definition: hd.c:2191
free_misc
misc_t * free_misc(misc_t *m)
Definition: hd.c:1439
new_str
char * new_str(const char *)
Definition: hd.c:1577
feature
@ feature
Definition: isdn_cdb_def.h:25
read_dir
str_list_t * read_dir(char *dir_name, int type)
Definition: hd.c:2576
mod_pppoe
@ mod_pppoe
Definition: hd_int.h:78
mod_int
@ mod_int
Definition: hd_int.h:77
mod_block
@ mod_block
Definition: hd_int.h:79
mod_kbd
@ mod_kbd
Definition: hd_int.h:77
hd_split
str_list_t * hd_split(char del, const char *str)
Definition: hd.c:5122
read_kmods
str_list_t * read_kmods(hd_data_t *hd_data)
Definition: hd.c:3551
mod_input
@ mod_input
Definition: hd_int.h:79
hd_find_sysfs_id
hd_t * hd_find_sysfs_id(hd_data_t *hd_data, char *id)
Definition: hd.c:5695
devtree_s
PROM tree on PPC.
Definition: hd.h:1177
resize_mem
void * resize_mem(void *, size_t)
Definition: hd.c:1551
mod_isa
@ mod_isa
Definition: hd_int.h:76
mod_pci
@ mod_pci
Definition: hd_int.h:74
mod_hal
@ mod_hal
Definition: hd_int.h:79
hex
int hex(char *string, int digits)
Definition: hd.c:2219
scsi_s::size
uint64_t size
Definition: hd.h:1159
join_res_irq
void join_res_irq(hd_res_t **res1, hd_res_t *res2)
Definition: hd.c:1649
s_hd_t
Individual hardware item.
Definition: hd.h:2196
name2eisa_id
unsigned name2eisa_id(char *)
Definition: hd.c:2170
mod_misc
@ mod_misc
Definition: hd_int.h:75
scsi_s::type
int type
Definition: hd.h:1152
hal_get_any
hal_prop_t * hal_get_any(hal_prop_t *prop, const char *key)
Definition: hal.c:279
mod_net
@ mod_net
Definition: hd_int.h:74
hal_get_str
hal_prop_t * hal_get_str(hal_prop_t *prop, const char *key)
Definition: hal.c:309
hal_device_s
HAL device.
Definition: hd.h:1624
sort_str_list
str_list_t * sort_str_list(str_list_t *sl0, int(*cmp_func)(const void *, const void *))
Definition: hd.c:6113
u_hd_res_t
libhd resource union
Definition: hd.h:1822
hd_sysfs_id
char * hd_sysfs_id(char *path)
Definition: hd.c:5986
hal_get_list
hal_prop_t * hal_get_list(hal_prop_t *prop, const char *key)
Definition: hal.c:338
str2float
int str2float(char *s, int n)
Definition: hd.c:2233
mod_monitor
@ mod_monitor
Definition: hd_int.h:75
mod_dsl
@ mod_dsl
Definition: hd_int.h:79
join_res_dma
void join_res_dma(hd_res_t **res1, hd_res_t *res2)
Definition: hd.c:1669
s_str_list_t::free_str_list
str_list_t * free_str_list(str_list_t *list)
Definition: hd.c:2493
hd_report_this
int hd_report_this(hd_data_t *hd_data, hd_t *hd)
Definition: hd.c:5825
hd_module_list
str_list_t * hd_module_list(hd_data_t *hd_data, unsigned id)
Definition: hd.c:5835
float2str
char * float2str(int i, int n)
Definition: hd.c:2264
detect_smp_prom
int detect_smp_prom(hd_data_t *hd_data)
hd_get_hddb_dir
char * hd_get_hddb_dir(void)
Definition: hd.c:5931
free_hd_detail
hd_detail_t * free_hd_detail(hd_detail_t *d)
Definition: hd.c:1213
get_sysfs_attr_by_path2
char * get_sysfs_attr_by_path2(const char *path, const char *attr, unsigned *len)
Definition: hd.c:6062
join_res_io
void join_res_io(hd_res_t **res1, hd_res_t *res2)
Definition: hd.c:1601
hal_prop_s
HAL device properties.
Definition: hd.h:1606
hd_fork_done
void hd_fork_done(hd_data_t *hd_data)
Definition: hd.c:5371
device
@ device
Definition: isdn_cdb_def.h:6
has_something_attached
unsigned has_something_attached(hd_data_t *hd_data, hd_t *hd)
Definition: hd.c:4106
hd_add_id
void hd_add_id(hd_data_t *hd_data, hd_t *hd)
Definition: hd.c:4218
s_str_list_t
String list type.
Definition: hd.h:406
unload_module
int unload_module(hd_data_t *hd_data, char *module)
Definition: hd.c:3864
hd_copy
void hd_copy(hd_t *dst, hd_t *src)
Definition: hd.c:3194
load_module
int load_module(hd_data_t *hd_data, char *module)
Definition: hd.c:3859
hd_move_to_shm
void hd_move_to_shm(hd_data_t *hd_data)
Definition: hd.c:5560
hal_get_int32
hal_prop_t * hal_get_int32(hal_prop_t *prop, const char *key)
Definition: hal.c:299
add_hd_entry
hd_t * add_hd_entry(hd_data_t *hd_data, unsigned line, unsigned count)
Definition: hd.c:1777
hd_sysfs_dev2_name
char * hd_sysfs_dev2_name(char *str)
Definition: hd.c:6019
mod_s390
@ mod_s390
Definition: hd_int.h:78
hd_sysfs_name2_dev
char * hd_sysfs_name2_dev(char *str)
Definition: hd.c:5998
driver_info_u
Definition: hd.h:2041
mod_sbus
@ mod_sbus
Definition: hd_int.h:77
get_probe_val_int
int get_probe_val_int(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:386
hal_find_device
hal_device_t * hal_find_device(hd_data_t *hd_data, char *udi)
Definition: hal.c:248
load_module_with_params
int load_module_with_params(hd_data_t *hd_data, char *module, char *params)
Definition: hd.c:3840
get_probe_val_list
str_list_t * get_probe_val_list(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:416
hd_log_printf
void hd_log_printf(hd_data_t *hd_data, char *format,...) __attribute__((format(printf
is_pnpinfo
int is_pnpinfo(ser_device_t *mi, int ofs)
Definition: modem.c:852
get_probe_val_str
char * get_probe_val_str(hd_data_t *hd_data, enum probe_feature feature)
Definition: hd.c:401
mod_scsi
@ mod_scsi
Definition: hd_int.h:75
hd_fork
void hd_fork(hd_data_t *hd_data, int timeout, int total_timeout)
Definition: hd.c:5274
mod_serial
@ mod_serial
Definition: hd_int.h:76
hd_shm_add
void * hd_shm_add(hd_data_t *hd_data, void *ptr, unsigned len)
Definition: hd.c:5502
mod_pnpdump
@ mod_pnpdump
Definition: hd_int.h:74
mod_braille
@ mod_braille
Definition: hd_int.h:77
hd_attr_uint
int hd_attr_uint(char *attr, uint64_t *u, int base)
Definition: hd.c:5955
mod_isdn
@ mod_isdn
Definition: hd_int.h:76
hd_get_hddb_path
char * hd_get_hddb_path(char *sub)
Definition: hd.c:5942
mod_wlan
@ mod_wlan
Definition: hd_int.h:79
hd_is_shm_ptr
int hd_is_shm_ptr(hd_data_t *hd_data, void *ptr)
Definition: hd.c:5526
hd_mod_cmp
int hd_mod_cmp(char *str1, char *str2)
Definition: hd.c:6093
hal_get_useful_str
char * hal_get_useful_str(hal_prop_t *prop, const char *key)
Definition: hal.c:319
hd_free_hal_devices
hal_device_t * hd_free_hal_devices(hal_device_t *dev)
Definition: hd.c:1088
update_irq_usage
void update_irq_usage(hd_data_t *hd_data)
Definition: hd.c:3773
free_driver_info
driver_info_t * free_driver_info(driver_info_t *di)
Definition: hd.c:1107
hexdump
void void hexdump(char **buf, int with_ascii, unsigned data_len, unsigned char *data)
Definition: hd.c:2440
hd_hal_print_prop
char * hd_hal_print_prop(hal_prop_t *prop)
Definition: hal.c:439
hd_shm_init
void hd_shm_init(hd_data_t *hd_data)
Definition: hd.c:5427
free_res_list
hd_res_t * free_res_list(hd_res_t *res)
Definition: hd.c:1726
probe_module
int probe_module(hd_data_t *hd_data, char *module)
Definition: hd.c:3821
mod_parallel
@ mod_parallel
Definition: hd_int.h:76
line
static char line[1024]
Definition: cdbisdn.c:29
hal_add_new
hal_prop_t * hal_add_new(hal_prop_t **prop)
Definition: hal.c:348
mod_cpu
@ mod_cpu
Definition: hd_int.h:75
cmp_hd
int cmp_hd(hd_t *hd1, hd_t *hd2)
Definition: hd.c:3883
hd_attr_list
str_list_t * hd_attr_list(char *str)
Definition: hd.c:5973
mod_adb
@ mod_adb
Definition: hd_int.h:76
remove_tagged_hd_entries
void remove_tagged_hd_entries(hd_data_t *hd_data)
Definition: hd.c:2729
hal_invalidate
void hal_invalidate(hal_prop_t *prop)
Definition: hal.c:262
hd_join
char * hd_join(char *del, str_list_t *str)
Definition: hd.c:5141
hd_data
static hd_data_t * hd_data
Definition: pppoe.c:29
add_mem
void * add_mem(void *, size_t, size_t)
Definition: hd.c:1563
hd_shm_clean
void hd_shm_clean(hd_data_t *hd_data)
Definition: hd.c:5467
mod_name_by_idx
char * mod_name_by_idx(unsigned idx)
Definition: hd.c:2324
add_res_entry
hd_res_t * add_res_entry(hd_res_t **res, hd_res_t *new_res)
Definition: hd.c:1769
mod_memory
@ mod_memory
Definition: hd_int.h:74
mod_modem
@ mod_modem
Definition: hd_int.h:76
hd_read_sysfs_link
char * hd_read_sysfs_link(char *base_dir, char *link_name)
Definition: hd.c:2631
scsi_s
raw SCSI data
Definition: hd.h:1140
read_block0
unsigned char * read_block0(hd_data_t *hd_data, char *dev, int *timeout)
Definition: hd.c:4331
detect_smp_bios
int detect_smp_bios(hd_data_t *hd_data)
mod_pcmcia
@ mod_pcmcia
Definition: hd_int.h:78
s_str_list_t::reverse_str_list
str_list_t * reverse_str_list(str_list_t *list)
Definition: hd.c:2508
read_udevinfo
void read_udevinfo(hd_data_t *hd_data)
Definition: hd.c:5626
hd_timeout
int hd_timeout(void(*func)(void *), void *arg, int timeout)
Definition: hd.c:3498
hd_pci_complete_data
void hd_pci_complete_data(hd_t *hd)
Definition: pci.c:458
mod_sys
@ mod_sys
Definition: hd_int.h:77
s_str_list_t::add_str_list
str_list_t * add_str_list(str_list_t **sl, char *str)
Definition: hd.c:2479
hd_find_sysfs_id_devname
hd_t * hd_find_sysfs_id_devname(hd_data_t *hd_data, char *id, char *devname)
Definition: hd.c:5709
vend_id2str
char * vend_id2str(unsigned vend)
Definition: hd.c:4412
progress
void progress(hd_data_t *hd_data, unsigned pos, unsigned count, char *msg)
Definition: hd.c:2652
isa_id2str
char * isa_id2str(unsigned)
Definition: hd.c:2139
module
@ module
Definition: isdn_cdb_def.h:22
mod_none
@ mod_none
Definition: hd_int.h:74
hd_log
void hd_log(hd_data_t *hd_data, char *buf, ssize_t len)
Definition: hd.c:2335
gather_resources
void gather_resources(misc_t *m, hd_res_t **r, char *name, unsigned which)
Definition: misc.c:603
mod_usb
@ mod_usb
Definition: hd_int.h:76
probe_feature
probe_feature
flags to control the probing.
Definition: hd.h:109
hd_data_t
Holds all data accumulated during hardware probing.
Definition: hd.h:2604
mod_xtra
@ mod_xtra
Definition: hd_int.h:77
new_mem
void * new_mem(size_t size)
Definition: hd.c:1535
mod_veth
@ mod_veth
Definition: hd_int.h:78
mod_fb
@ mod_fb
Definition: hd_int.h:78
hd_sysfs_driver_list
void hd_sysfs_driver_list(hd_data_t *hd_data)
Definition: hd.c:5751
eisa_vendor_str
char * eisa_vendor_str(unsigned)
Definition: hd.c:2154
hd_shm_done
void hd_shm_done(hd_data_t *hd_data)
Definition: hd.c:5489
mod_idx
mod_idx
Definition: hd_int.h:73
free_mem
void * free_mem(void *)
Definition: hd.c:1594
get_sysfs_attr_by_path
char * get_sysfs_attr_by_path(const char *path, const char *attr)
Definition: hd.c:6053
get_sysfs_attr
char * get_sysfs_attr(const char *bus, const char *device, const char *attr)
Definition: hd.c:6037