10 #include <sys/socket.h>
12 #include <sysfs/libsysfs.h>
16 #include <sys/types.h>
25 /* Be sync to kernel header */
26 #define BUS_ID_SIZE 20
28 int read_string(char *path, char *, size_t len);
29 int read_integer(char *path);
30 int getdevicename(char *busid, char *name, size_t len);
31 int getdriver(char *busid, int conf, int infnum, char *driver, size_t len);
32 int read_bNumInterfaces(char *busid);
33 int read_bConfigurationValue(char *busid);
34 int write_integer(char *path, int value);
35 int write_bConfigurationValue(char *busid, int config);
36 int read_bDeviceClass(char *busid);
37 int readline(int sockfd, char *str, int strlen);
38 int writeline(int sockfd, char *buff, int bufflen);