Lines Matching defs:config
51 * Fetch the config schema from the kernel via ioctl. This function has to
68 err(1, "Could not fetch size of config schema");
80 err(1, "Could not fetch config schema");
95 config_iov(int fd, const char *dev_name, const nvlist_t *config, int dryrun)
100 arg.config = nvlist_pack(config, &arg.len);
101 if (arg.config == NULL)
108 nvlist_fdump(config, stdout);
118 free(arg.config);
159 warnx("Usage: iovctl -C -f <config file> [-n]");
160 warnx(" iovctl -D [-d <PF device> | -f <config file>] [-n]");
161 warnx(" iovctl -S [-d <PF device> | -f <config file>]");
278 nvlist_t *schema, *config;
287 config = parse_config_file(filename, schema);
288 if (config == NULL)
289 errx(1, "Could not parse config");
291 config_iov(fd, dev, config, dryrun);
293 nvlist_destroy(config);