Lines Matching refs:s
56 static int lookup_keyword(const char *s) in lookup_keyword() argument
58 switch (*s++) { in lookup_keyword()
60 if (!strcmp(s, "evname")) return K_devname; in lookup_keyword()
61 if (!strcmp(s, "irname")) return K_dirname; in lookup_keyword()
64 if (!strcmp(s, "ubsystem")) return K_subsystem; in lookup_keyword()
87 struct ueventd_subsystem *s; in ueventd_subsystem_find_by_name() local
90 s = node_to_item(node, struct ueventd_subsystem, slist); in ueventd_subsystem_find_by_name()
91 if (!strcmp(s->name, name)) { in ueventd_subsystem_find_by_name()
92 return s; in ueventd_subsystem_find_by_name()
104 ueventd_subsystem* s = ueventd_subsystem_find_by_name(args[1]); in parse_subsystem() local
105 if (s) { in parse_subsystem()
111 s = (ueventd_subsystem*) calloc(1, sizeof(*s)); in parse_subsystem()
112 if (!s) { in parse_subsystem()
116 s->name = args[1]; in parse_subsystem()
117 s->dirname = "/dev"; in parse_subsystem()
118 list_add_tail(&subsystem_list, &s->slist); in parse_subsystem()
119 return s; in parse_subsystem()
125 struct ueventd_subsystem *s = (ueventd_subsystem*) state->context; in parse_line_subsystem() local
136 s->devname_src = DEVNAME_UEVENT_DEVNAME; in parse_line_subsystem()
138 s->devname_src = DEVNAME_UEVENT_DEVPATH; in parse_line_subsystem()
145 s->dirname = args[1]; in parse_line_subsystem()