Lines Matching refs:nargs
33 static void parse_line_device(struct parse_state *state, int nargs, char **args);
40 #define KEYWORD(symbol, flags, nargs) \ argument
41 [ K_##symbol ] = { #symbol, nargs + 1, flags, },
45 unsigned char nargs; member
54 #define kw_nargs(kw) (keyword_info[kw].nargs)
122 static void parse_line_subsystem(struct parse_state *state, int nargs, in parse_line_subsystem() argument
128 if (nargs == 0) { in parse_line_subsystem()
157 int nargs, char **args) in parse_new_section() argument
160 nargs > 1 ? args[1] : ""); in parse_new_section()
164 state->context = parse_subsystem(state, nargs, args); in parse_new_section()
174 static void parse_line(struct parse_state *state, char **args, int nargs) in parse_line() argument
179 if (nargs < kw_nargs) { in parse_line()
186 parse_new_section(state, kw, nargs, args); in parse_line()
188 state->parse_line(state, nargs, args); in parse_line()
190 parse_line_device(state, nargs, args); in parse_line()
198 int nargs = 0; in parse_config() local
209 parse_line(&state, args, nargs); in parse_config()
212 if (nargs) { in parse_config()
213 parse_line(&state, args, nargs); in parse_config()
214 nargs = 0; in parse_config()
219 if (nargs < UEVENTD_PARSER_MAXARGS) { in parse_config()
220 args[nargs++] = state.text; in parse_config()
239 static void parse_line_device(parse_state*, int nargs, char** args) { in parse_line_device() argument
240 set_device_permission(nargs, args); in parse_line_device()