/freebsd-11-stable/sys/sys/ |
H A D | iov_schema.h | 37 void pci_iov_schema_add_bool(nvlist_t *schema, const char *name, 39 void pci_iov_schema_add_string(nvlist_t *schema, const char *name, 41 void pci_iov_schema_add_uint8(nvlist_t *schema, const char *name, 43 void pci_iov_schema_add_uint16(nvlist_t *schema, const char *name, 45 void pci_iov_schema_add_uint32(nvlist_t *schema, const char *name, 47 void pci_iov_schema_add_uint64(nvlist_t *schema, const char *name, 49 void pci_iov_schema_add_unicast_mac(nvlist_t *schema, const char *name,
|
H A D | iov.h | 53 * with a configuration schema. The schema is exported from the kernel as a 60 * schema. 67 * associated with this key is a nvlist that follows the device schema 71 * associated with this key is a nvlist that follows the device schema 78 * schema node format. The parameters in this node specify the 82 * with this key is an nvlist that follows the device/subsystem schema node 87 * 1) All keys in the device/subsystem schema node are optional. 91 * configuration values, and must be a nvlist in parameter schema node 95 * 1) The parameter schema nod 160 void *schema; member in struct:pci_iov_schema [all...] |
/freebsd-11-stable/sys/dev/pci/ |
H A D | schema_private.h | 32 int pci_iov_validate_schema(const nvlist_t *schema);
|
H A D | pci_iov_schema.c | 156 pci_iov_schema_add_bool(nvlist_t *schema, const char *name, uint32_t flags, argument 163 nvlist_set_error(schema, ENOMEM); 172 nvlist_move_nvlist(schema, name, entry); 176 pci_iov_schema_add_string(nvlist_t *schema, const char *name, uint32_t flags, argument 183 nvlist_set_error(schema, ENOMEM); 192 nvlist_move_nvlist(schema, name, entry); 196 pci_iov_schema_int(nvlist_t *schema, const char *name, const char *type, argument 203 nvlist_set_error(schema, ENOMEM); 212 nvlist_move_nvlist(schema, name, entry); 216 pci_iov_schema_add_uint8(nvlist_t *schema, cons argument 224 pci_iov_schema_add_uint16(nvlist_t *schema, const char *name, uint32_t flags, uint16_t defaultVal) argument 232 pci_iov_schema_add_uint32(nvlist_t *schema, const char *name, uint32_t flags, uint32_t defaultVal) argument 240 pci_iov_schema_add_uint64(nvlist_t *schema, const char *name, uint32_t flags, uint64_t defaultVal) argument 248 pci_iov_schema_add_unicast_mac(nvlist_t *schema, const char *name, uint32_t flags, const uint8_t * defaultVal) argument 407 pci_iov_validate_param_schema(const nvlist_t *schema) argument 514 pci_iov_validate_device_schema(const nvlist_t *schema, const char *name) argument 558 pci_iov_validate_schema(const nvlist_t *schema) argument 579 pci_iov_schema_validate_required(const nvlist_t *schema, nvlist_t *config) argument 624 pci_iov_schema_validate_types(const nvlist_t *schema, const nvlist_t *config) argument 649 pci_iov_schema_validate_device(const nvlist_t *schema, nvlist_t *config, const char *schema_device, const char *config_device) argument 709 pci_iov_schema_validate_vfs(const nvlist_t *schema, nvlist_t *config, uint16_t num_vfs) argument 830 pci_iov_schema_validate_config(const nvlist_t *schema, nvlist_t *config) argument [all...] |
H A D | pci_iov.c | 93 static void pci_iov_build_pf_schema(nvlist_t *schema, 95 static void pci_iov_build_vf_schema(nvlist_t *schema, 121 nvlist_t *schema; local 128 schema = NULL; 154 schema = pci_iov_build_schema(&pf_schema, &vf_schema); 155 if (schema == NULL) { 160 error = pci_iov_validate_schema(schema); 163 iov->iov_schema = schema; 180 nvlist_destroy(schema); 225 nvlist_t *schema, *pf_drive local 253 pci_iov_build_pf_schema(nvlist_t *schema, nvlist_t **driver_schema) argument 278 pci_iov_build_vf_schema(nvlist_t *schema, nvlist_t **driver_schema) argument [all...] |
/freebsd-11-stable/usr.sbin/iovctl/ |
H A D | iovctl.c | 51 * Fetch the config schema from the kernel via ioctl. This function has to 53 * to allocate for the schema, and the second actually fetches the schema. 59 nvlist_t *schema; local 62 /* Do the ioctl() once to fetch the size of the schema. */ 63 arg.schema = NULL; 68 err(1, "Could not fetch size of config schema"); 70 arg.schema = malloc(arg.len); 71 if (arg.schema == NULL) 72 err(1, "Could not allocate %zu bytes for schema", 274 nvlist_t *schema, *config; local 378 nvlist_t *schema; local [all...] |
H A D | validate.c | 170 const nvlist_t *subsystem, *schema, *config; local 176 schema = nvlist_get_nvlist(device_schema, subsystem_name); 179 while ((name = nvlist_next(schema, &type, &cookie)) != NULL) { 180 config = nvlist_get_nvlist(schema, name); 196 validate_device(const nvlist_t *device, const nvlist_t *schema, argument 200 validate_subsystem(device, schema, DRIVER_CONFIG_NAME, config_name); 201 validate_subsystem(device, schema, IOV_CONFIG_NAME, config_name); 215 * config schema. Note that the parser is required to not insert configuration 216 * keys that are not valid in the schema, and to not insert configuration values 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) argument [all...] |
H A D | parse.c | 168 * in the schema, and then adds the value to the configuation node. 172 const nvlist_t *schema) 176 type = nvlist_get_string(schema, TYPE_SCHEMA_NAME); 193 errx(1, "Unexpected type '%s' in schema", type); 198 * validates that the key/value pair is valid in the schema, and then adds 203 const char *subsystem, const nvlist_t *schema) 215 driver_schema = nvlist_get_nvlist(schema, DRIVER_CONFIG_NAME); 216 iov_schema = nvlist_get_nvlist(schema, IOV_CONFIG_NAME); 250 * Parses the specified config file using the given schema, and returns an 256 parse_config_file(const char *filename, const nvlist_t *schema) argument 171 add_config(const char *key, const ucl_object_t *obj, nvlist_t *config, const nvlist_t *schema) argument 202 parse_device_config(const ucl_object_t *top, nvlist_t *config, const char *subsystem, const nvlist_t *schema) argument [all...] |
/freebsd-11-stable/contrib/libucl/tests/ |
H A D | test_schema.c | 65 perform_test (const ucl_object_t *schema, const ucl_object_t *obj, argument 80 match = ucl_object_validate (schema, data, err); 87 fprintf (stdout, "%s\n", ucl_object_emit (schema, UCL_EMIT_CONFIG)); 99 const ucl_object_t *schema, *tests, *description, *test; local 106 schema = ucl_object_lookup (obj, "schema"); 110 if (schema == NULL || tests == NULL || description == NULL) { 118 if (!perform_test (schema, test, &err)) {
|
H A D | schema.test | 7 for i in ${TEST_DIR}/schema/*.json ; do 9 printf "running schema test suite $_name... "
|
H A D | Makefile.am | 1 EXTRA_DIST = $(TESTS) basic schema generate.res \ 6 schema.test \
|
H A D | run_tests.sh | 42 for i in ${TEST_DIR}/schema/*.json ; do 44 printf "running schema test suite $_name... "
|
/freebsd-11-stable/contrib/libucl/python/tests/ |
H A D | test_validation.py | 8 TESTS_SCHEMA_FOLDER = '../tests/schema/*.json' 16 def perform_test(schema, data, valid, description): 19 self.assertTrue(ucl.validate(schema, data), msg) 22 ucl.validate(schema, data) 34 perform_test(testgroup['schema'], test['data'],
|
/freebsd-11-stable/contrib/libucl/src/ |
H A D | ucl_schema.c | 43 static bool ucl_schema_validate (const ucl_object_t *schema, 140 ucl_schema_validate_object (const ucl_object_t *schema, argument 151 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { 176 "additionalProperties attribute is invalid in schema"); 187 "required attribute is invalid in schema"); 237 /* Check if we have exactly the same properties in schema and object */ 239 prop = ucl_object_lookup (schema, "properties"); 245 pat = ucl_object_lookup (schema, "patternProperties"); 291 ucl_schema_validate_number (const ucl_object_t *schema, argument 300 while (ret && (elt = ucl_object_iterate (schema, 357 ucl_schema_validate_string(const ucl_object_t *schema, const ucl_object_t *obj, struct ucl_schema_error *err) argument 471 ucl_schema_validate_array(const ucl_object_t *schema, const ucl_object_t *obj, struct ucl_schema_error *err, const ucl_object_t *root, ucl_object_t *ext_ref) argument 870 ucl_schema_validate_values(const ucl_object_t *schema, const ucl_object_t *obj, struct ucl_schema_error *err) argument 916 ucl_schema_validate(const ucl_object_t *schema, const ucl_object_t *obj, bool try_array, struct ucl_schema_error *err, const ucl_object_t *root, ucl_object_t *external_refs) argument 1055 ucl_object_validate(const ucl_object_t *schema, const ucl_object_t *obj, struct ucl_schema_error *err) argument 1062 ucl_object_validate_root(const ucl_object_t *schema, const ucl_object_t *obj, const ucl_object_t *root, struct ucl_schema_error *err) argument 1071 ucl_object_validate_root_ext(const ucl_object_t *schema, const ucl_object_t *obj, const ucl_object_t *root, ucl_object_t *ext_refs, struct ucl_schema_error *err) argument [all...] |
/freebsd-11-stable/contrib/libucl/utils/ |
H A D | ucl-tool.c | 33 {"schema", required_argument, NULL, 's'}, 40 fprintf(out, " [-s|--schema file] [-f|--format format]\n\n"); 46 fprintf(out, " --schema - specify schema file for validation\n"); 54 const char *schema = NULL; local 78 schema = optarg; 135 if (schema != NULL) { 140 if (!ucl_parser_add_file(schema_parser, schema)) { 141 fprintf(stderr, "Failed to parse schema file: %s\n",
|
/freebsd-11-stable/contrib/libucl/lua/ |
H A D | lua_ucl.c | 687 * @method parser:validate(schema) 688 * Validates the top object in the parser against schema. Schema might be 689 * another object or a string that represents file to load schema from. 691 * @param {string/table} schema input schema 699 ucl_object_t *schema; local 707 schema = ucl_object_lua_import (L, 2); 709 if (schema == NULL) { 711 lua_pushstring (L, "cannot load schema from lua table"); 722 lua_pushfstring (L, "cannot parse schema fil 868 ucl_object_t *obj, *schema, *ext_refs = NULL; local [all...] |
/freebsd-11-stable/contrib/libucl/python/src/ |
H A D | uclmodule.c | 260 ucl_object_t *data, *schema; local 269 schema = _iterate_python(schemaobj); 270 if (!schema) 278 r = ucl_object_validate (schema, data, &err); 279 ucl_object_unref (schema); 293 {"validate", ucl_validate, METH_VARARGS, "Validate ucl stream against schema"},
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | xml_libxml2.c | 60 xmlSchemaPtr schema; local 83 schema = xmlSchemaParse(pctx); 86 vctx = xmlSchemaNewValidCtxt(schema); 94 xmlSchemaFree(schema);
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_fs/ |
H A D | rep-cache-db.sql | 1 /* rep-cache-db.sql -- schema for use in rep-caching 38 Same as in V1 schema, except that it uses the `WITHOUT ROWID` optimization:
|
/freebsd-11-stable/contrib/subversion/ |
H A D | Makefile.in | 41 SCHEMA_DIR = subversion/svn/schema 753 # Converting from the .rnc XML schemas to various other schema formats. 778 schema: mkdir-init schema-rng schema-dtd schema-xsd 780 schema-rng: $(SCHEMAS_RNG) 781 schema-dtd: $(SCHEMAS_DTD) 782 schema-xsd: $(SCHEMAS_XSD) 786 schema [all...] |
/freebsd-11-stable/contrib/wpa/src/wps/ |
H A D | upnp_xml.c | 186 * schema following actionName will be WFA scheme instead
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_x/ |
H A D | rep-cache-db.sql | 1 /* rep-cache-db.sql -- schema for use in rep-caching
|
/freebsd-11-stable/contrib/libucl/include/ |
H A D | ucl.h | 1395 * @defgroup schema Schema functions 1396 * These functions are used to validate UCL objects using json schema format 1402 * Used to define UCL schema error 1407 UCL_SCHEMA_INVALID_SCHEMA, /**< schema is invalid */ 1418 * Generic ucl schema error 1427 * Validate object `obj` using schema object `schema`. 1428 * @param schema schema object 1432 * @return true if `obj` is valid using `schema` [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_wc/ |
H A D | wc-metadata.sql | 1 /* wc-metadata.sql -- schema used in the wc-metadata SQLite database 42 /* One big list of statements to create our (current) schema. */
|
H A D | wc-queries.sql | 1812 /* Grab all the statements related to the schema. */
|