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