Lines Matching refs:section
155 freebsd_conf_handler(struct ff_config *cfg, const char *section, in freebsd_conf_handler() argument
168 if (strcmp(section, "boot") == 0) { in freebsd_conf_handler()
173 } else if (strcmp(section, "sysctl") == 0) { in freebsd_conf_handler()
193 fprintf(stderr, "freebsd conf section[%s] error\n", section); in freebsd_conf_handler()
446 port_cfg_handler(struct ff_config *cfg, const char *section, in port_cfg_handler() argument
475 int ret = sscanf(section, "port%d", &portid); in port_cfg_handler()
477 fprintf(stderr, "port_cfg_handler section[%s] error\n", section); in port_cfg_handler()
483 fprintf(stderr, "port_cfg_handler section[%s] bigger than max port id\n", section); in port_cfg_handler()
489 cur->name = strdup(section); in port_cfg_handler()
537 vdev_cfg_handler(struct ff_config *cfg, const char *section, in vdev_cfg_handler() argument
555 int ret = sscanf(section, "vdev%d", &vdevid); in vdev_cfg_handler()
557 fprintf(stderr, "vdev_cfg_handler section[%s] error\n", section); in vdev_cfg_handler()
563 fprintf(stderr, "vdev_cfg_handler section[%s] bigger than max vdev id\n", section); in vdev_cfg_handler()
569 cur->name = strdup(section); in vdev_cfg_handler()
591 bond_cfg_handler(struct ff_config *cfg, const char *section, in bond_cfg_handler() argument
609 int ret = sscanf(section, "bond%d", &bondid); in bond_cfg_handler()
611 fprintf(stderr, "bond_cfg_handler section[%s] error\n", section); in bond_cfg_handler()
617 fprintf(stderr, "bond_cfg_handler section[%s] bigger than max bond id\n", section); in bond_cfg_handler()
623 cur->name = strdup(section); in bond_cfg_handler()
651 ini_parse_handler(void* user, const char* section, const char* name, in ini_parse_handler() argument
656 printf("[%s]: %s=%s\n", section, name, value); in ini_parse_handler()
658 #define MATCH(s, n) strcmp(section, s) == 0 && strcmp(name, n) == 0 in ini_parse_handler()
706 } else if (strcmp(section, "freebsd.boot") == 0) { in ini_parse_handler()
718 } else if (strcmp(section, "freebsd.sysctl") == 0) { in ini_parse_handler()
720 } else if (strncmp(section, "port", 4) == 0) { in ini_parse_handler()
721 return port_cfg_handler(pconfig, section, name, value); in ini_parse_handler()
722 } else if (strncmp(section, "vdev", 4) == 0) { in ini_parse_handler()
723 return vdev_cfg_handler(pconfig, section, name, value); in ini_parse_handler()
724 } else if (strncmp(section, "bond", 4) == 0) { in ini_parse_handler()
725 return bond_cfg_handler(pconfig, section, name, value); in ini_parse_handler()
726 } else if (strcmp(section, "pcap") == 0) { in ini_parse_handler()