Lines Matching refs:rule_file

166         UdevRuleFile *rule_file;  member
285 if (rule_line->rule_file) { in udev_rule_line_free()
286 if (rule_line->rule_file->current_line == rule_line) in udev_rule_line_free()
287 rule_line->rule_file->current_line = rule_line->rule_lines_prev; in udev_rule_line_free()
289 LIST_REMOVE(rule_lines, rule_line->rule_file->rule_lines, rule_line); in udev_rule_line_free()
298 static void udev_rule_file_free(UdevRuleFile *rule_file) { in udev_rule_file_free() argument
299 if (!rule_file) in udev_rule_file_free()
302 LIST_FOREACH(rule_lines, i, rule_file->rule_lines) in udev_rule_file_free()
305 free(rule_file->filename); in udev_rule_file_free()
306 free(rule_file); in udev_rule_file_free()
1081 UdevRuleFile *rule_file; in rule_add_line() local
1089 rule_file = rules->current_file; in rule_add_line()
1107 .rule_file = rule_file, in rule_add_line()
1110 if (rule_file->current_line) in rule_add_line()
1111 LIST_APPEND(rule_lines, rule_file->current_line, rule_line); in rule_add_line()
1113 LIST_APPEND(rule_lines, rule_file->rule_lines, rule_line); in rule_add_line()
1115 rule_file->current_line = rule_line; in rule_add_line()
1142 static void rule_resolve_goto(UdevRuleFile *rule_file) { in rule_resolve_goto() argument
1143 assert(rule_file); in rule_resolve_goto()
1146 LIST_FOREACH(rule_lines, line, rule_file->rule_lines) { in rule_resolve_goto()
1158 rule_file->filename, line->line_number, line->goto_label); in rule_resolve_goto()
1165 rule_file->filename, line->line_number); in rule_resolve_goto()
1178 UdevRuleFile *rule_file; in udev_rules_parse_file() local
1204 rule_file = new(UdevRuleFile, 1); in udev_rules_parse_file()
1205 if (!rule_file) in udev_rules_parse_file()
1208 *rule_file = (UdevRuleFile) { in udev_rules_parse_file()
1213 LIST_APPEND(rule_files, rules->current_file, rule_file); in udev_rules_parse_file()
1215 LIST_APPEND(rule_files, rules->rule_files, rule_file); in udev_rules_parse_file()
1217 rules->current_file = rule_file; in udev_rules_parse_file()
1274 rule_resolve_goto(rule_file); in udev_rules_parse_file()
2490 … DEVICE_TRACE_POINT(rules_apply_line, event->dev, line->rule_file->filename, line->line_number); in udev_rule_apply_line_to_event()