Lines Matching refs:line
49 static char *parse_field(char *line, char field)
55 value = strstr(line, HANDLERS_PREFIX) + sizeof(HANDLERS_PREFIX) - 1;
58 value = strstr(line, SYSFS_PREFIX) + sizeof(SYSFS_PREFIX) - 1;
72 char line[1024];
79 while (fgets(line, sizeof(line), file)) {
80 if (strstr(line, "N: Name=\""VIRTUAL_DEVICE"\""))
84 if (line[0] == field)
85 return parse_field(line, field);
87 if (line[0] == '\n')
99 char line[256];
105 while (fgets(line, sizeof(line), file)) {
106 if (strstr(line, "Name=\""VIRTUAL_DEVICE"\""))