41 |
|
|
42 |
|
|
43 |
/* Handle one line of output from the lspci subprocess */ |
/* Handle one line of output from the lspci subprocess */ |
44 |
static BOOL |
static RD_BOOL |
45 |
handle_child_line(const char *line, void *data) |
handle_child_line(const char *line, void *data) |
46 |
{ |
{ |
47 |
const char *val; |
const char *val; |
106 |
|
|
107 |
|
|
108 |
/* Process one line of input from virtual channel */ |
/* Process one line of input from virtual channel */ |
109 |
static BOOL |
static RD_BOOL |
110 |
lspci_process_line(const char *line, void *data) |
lspci_process_line(const char *line, void *data) |
111 |
{ |
{ |
112 |
char *lspci_command[5] = { "lspci", "-m", "-n", "-v", NULL }; |
char *lspci_command[5] = { "lspci", "-m", "-n", "-v", NULL }; |
148 |
} |
} |
149 |
|
|
150 |
/* Initialize this module: Register the lspci channel */ |
/* Initialize this module: Register the lspci channel */ |
151 |
BOOL |
RD_BOOL |
152 |
lspci_init(void) |
lspci_init(void) |
153 |
{ |
{ |
154 |
lspci_channel = |
lspci_channel = |