• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/usr.sbin/iovctl/

Lines Matching defs:config

46  * Returning a writeable pointer requires removing the configuration from config
48 * nvlist in config with nvlist_move_nvlist.
51 find_config(nvlist_t *config, const char * device)
55 subsystem = dnvlist_take_nvlist(config, device, NULL);
62 err(1, "Could not allocate config nvlist");
66 err(1, "Could not allocate config nvlist");
70 err(1, "Could not allocate config nvlist");
103 nvlist_t *config;
111 config = nvlist_take_nvlist(device_config, subsystem);
116 if (nvlist_exists(config, name))
121 nvlist_add_bool(config, name,
125 nvlist_add_number(config, name,
129 nvlist_add_string(config, name,
133 nvlist_add_nvlist(config, name,
138 nvlist_add_binary(config, name, bin, len);
144 nvlist_move_nvlist(device_config, subsystem, config);
170 const nvlist_t *subsystem, *schema, *config;
180 config = nvlist_get_nvlist(schema, name);
182 if (dnvlist_get_bool(config, REQUIRED_SCHEMA_NAME, false)) {
214 * Validates the configuration that has been parsed into config using the given
215 * config schema. Note that the parser is required to not insert configuration
218 * either condition. This function is only responsible for inserting config
220 * subsystem from config, validating that all required parameters in the schema
225 validate_config(nvlist_t *config, const nvlist_t *schema, const regex_t *vf_pat)
236 pf = find_config(config, PF_CONFIG_NAME);
239 nvlist_move_nvlist(config, PF_CONFIG_NAME, pf);
247 defaults = dnvlist_take_nvlist(config, DEFAULT_SCHEMA_NAME, NULL);
253 vf = find_config(config, device_name);
259 nvlist_move_nvlist(config, device_name, vf);
264 while ((key = nvlist_next(config, &type, &cookie)) != NULL) {