/freebsd-current/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-current/sys/dev/pci/ |
H A D | schema_private.h | 30 int pci_iov_validate_schema(const nvlist_t *schema);
|
H A D | pci_iov_schema.c | 153 pci_iov_schema_add_bool(nvlist_t *schema, const char *name, uint32_t flags, argument 160 nvlist_set_error(schema, ENOMEM); 169 nvlist_move_nvlist(schema, name, entry); 173 pci_iov_schema_add_string(nvlist_t *schema, const char *name, uint32_t flags, argument 180 nvlist_set_error(schema, ENOMEM); 189 nvlist_move_nvlist(schema, name, entry); 193 pci_iov_schema_int(nvlist_t *schema, const char *name, const char *type, argument 200 nvlist_set_error(schema, ENOMEM); 209 nvlist_move_nvlist(schema, name, entry); 213 pci_iov_schema_add_uint8(nvlist_t *schema, cons argument 221 pci_iov_schema_add_uint16(nvlist_t *schema, const char *name, uint32_t flags, uint16_t defaultVal) argument 229 pci_iov_schema_add_uint32(nvlist_t *schema, const char *name, uint32_t flags, uint32_t defaultVal) argument 237 pci_iov_schema_add_uint64(nvlist_t *schema, const char *name, uint32_t flags, uint64_t defaultVal) argument 245 pci_iov_schema_add_unicast_mac(nvlist_t *schema, const char *name, uint32_t flags, const uint8_t * defaultVal) argument 404 pci_iov_validate_param_schema(const nvlist_t *schema) argument 511 pci_iov_validate_device_schema(const nvlist_t *schema, const char *name) argument 555 pci_iov_validate_schema(const nvlist_t *schema) argument 576 pci_iov_schema_validate_required(const nvlist_t *schema, nvlist_t *config) argument 621 pci_iov_schema_validate_types(const nvlist_t *schema, const nvlist_t *config) argument 646 pci_iov_schema_validate_device(const nvlist_t *schema, nvlist_t *config, const char *schema_device, const char *config_device) argument 706 pci_iov_schema_validate_vfs(const nvlist_t *schema, nvlist_t *config, uint16_t num_vfs) argument 827 pci_iov_schema_validate_config(const nvlist_t *schema, nvlist_t *config) argument [all...] |
H A D | pci_iov.c | 92 static void pci_iov_build_pf_schema(nvlist_t *schema, 94 static void pci_iov_build_vf_schema(nvlist_t *schema, 120 nvlist_t *schema; local 126 schema = NULL; 153 schema = pci_iov_build_schema(&pf_schema, &vf_schema); 154 if (schema == NULL) { 159 error = pci_iov_validate_schema(schema); 162 iov->iov_schema = schema; 179 nvlist_destroy(schema); 231 nvlist_t *schema, *pf_drive local 259 pci_iov_build_pf_schema(nvlist_t *schema, nvlist_t **driver_schema) argument 284 pci_iov_build_vf_schema(nvlist_t *schema, nvlist_t **driver_schema) argument [all...] |
/freebsd-current/usr.sbin/iovctl/ |
H A D | iovctl.c | 48 * Fetch the config schema from the kernel via ioctl. This function has to 50 * to allocate for the schema, and the second actually fetches the schema. 56 nvlist_t *schema; local 59 /* Do the ioctl() once to fetch the size of the schema. */ 60 arg.schema = NULL; 65 err(1, "Could not fetch size of config schema"); 67 arg.schema = malloc(arg.len); 68 if (arg.schema == NULL) 69 err(1, "Could not allocate %zu bytes for schema", 275 nvlist_t *schema, *config; local 379 nvlist_t *schema; local [all...] |
H A D | validate.c | 167 const nvlist_t *subsystem, *schema, *config; local 173 schema = nvlist_get_nvlist(device_schema, subsystem_name); 176 while ((name = nvlist_next(schema, &type, &cookie)) != NULL) { 177 config = nvlist_get_nvlist(schema, name); 193 validate_device(const nvlist_t *device, const nvlist_t *schema, argument 197 validate_subsystem(device, schema, DRIVER_CONFIG_NAME, config_name); 198 validate_subsystem(device, schema, IOV_CONFIG_NAME, config_name); 212 * config schema. Note that the parser is required to not insert configuration 213 * keys that are not valid in the schema, and to not insert configuration values 217 * subsystem from config, validating that all required parameters in the schema 222 validate_config(nvlist_t *config, const nvlist_t *schema, const regex_t *vf_pat) argument [all...] |
H A D | parse.c | 165 * in the schema, and then adds the value to the configuration node. 169 const nvlist_t *schema) 173 type = nvlist_get_string(schema, TYPE_SCHEMA_NAME); 190 errx(1, "Unexpected type '%s' in schema", type); 195 * validates that the key/value pair is valid in the schema, and then adds 200 const char *subsystem, const nvlist_t *schema) 212 driver_schema = nvlist_get_nvlist(schema, DRIVER_CONFIG_NAME); 213 iov_schema = nvlist_get_nvlist(schema, IOV_CONFIG_NAME); 247 * Parses the specified config file using the given schema, and returns an 253 parse_config_file(const char *filename, const nvlist_t *schema) argument 168 add_config(const char *key, const ucl_object_t *obj, nvlist_t *config, const nvlist_t *schema) argument 199 parse_device_config(const ucl_object_t *top, nvlist_t *config, const char *subsystem, const nvlist_t *schema) argument [all...] |
/freebsd-current/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-current/contrib/kyua/store/ |
H A D | write_backend.cpp | 52 /// The current schema version. 54 /// Any new database gets this schema version. Existing databases with an older 55 /// schema version must be first migrated to the current schema with 85 /// Calculates the path to the schema file for the database. 109 const fs::path schema = schema_file(); local 111 LI(F("Populating new database with schema from %s") % schema); 113 db.exec(utils::read_file(schema)); 119 "%s") % schema); [all...] |
H A D | schema_inttest.cpp | 445 const char* schema = "schema_v" #from_version ".sql"; \ 449 testdata_file(schema).str() + " " + testdata_file(testdata).str(); \ 459 const char* schema = "schema_v" #from_version ".sql"; \ 466 db.exec(utils::read_file(testdata_file(schema))); \
|
/freebsd-current/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-current/contrib/libucl/src/ |
H A D | ucl_schema.c | 43 static bool ucl_schema_validate (const ucl_object_t *schema, 149 ucl_schema_validate_object (const ucl_object_t *schema, argument 160 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { 185 "additionalProperties attribute is invalid in schema"); 196 "required attribute is invalid in schema"); 246 /* Check if we have exactly the same properties in schema and object */ 248 prop = ucl_object_lookup (schema, "properties"); 253 pat = ucl_object_lookup (schema, "patternProperties"); 304 ucl_schema_validate_number (const ucl_object_t *schema, argument 313 while (ret && (elt = ucl_object_iterate (schema, 370 ucl_schema_validate_string(const ucl_object_t *schema, const ucl_object_t *obj, struct ucl_schema_error *err) argument 484 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 883 ucl_schema_validate_values(const ucl_object_t *schema, const ucl_object_t *obj, struct ucl_schema_error *err) argument 929 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 1068 ucl_object_validate(const ucl_object_t *schema, const ucl_object_t *obj, struct ucl_schema_error *err) argument 1075 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 1084 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-current/sys/contrib/device-tree/Bindings/ |
H A D | Makefile | 4 DT_MK_SCHEMA ?= dt-mk-schema 29 -name 'processed-schema*' \) 70 $(obj)/processed-schema.json: $(DT_DOCS) $(src)/.yamllint check_dtschema_version FORCE 73 always-y += processed-schema.json 82 dt_compatible_check: $(obj)/processed-schema.json
|
/freebsd-current/contrib/libucl/utils/ |
H A D | ucl-tool.c | 27 fprintf(out, " [-s|--schema file] [-f|--format format]\n\n"); 33 fprintf(out, " --schema - specify schema file for validation\n"); 42 const char *schema = NULL, *parm, *val; local 75 } else if ((strcmp(parm, "--schema") == 0) || (strcmp(parm, "-s") == 0)) { 78 schema = val; 133 if (schema != NULL) { 138 if (!ucl_parser_add_file(schema_parser, schema)) { 139 fprintf(stderr, "Failed to parse schema file: %s\n",
|
/freebsd-current/contrib/libucl/python/src/ |
H A D | uclmodule.c | 261 ucl_object_t *data, *schema; local 270 schema = _iterate_python(schemaobj); 271 if (!schema) 279 r = ucl_object_validate (schema, data, &err); 280 ucl_object_unref (schema); 294 {"validate", ucl_validate, METH_VARARGS, "Validate ucl stream against schema"},
|
/freebsd-current/contrib/libucl/lua/ |
H A D | lua_ucl.c | 937 * @method parser:validate(schema) 938 * Validates the top object in the parser against schema. Schema might be 939 * another object or a string that represents file to load schema from. 941 * @param {string/table} schema input schema 949 ucl_object_t *schema; local 957 schema = ucl_object_lua_import (L, 2); 959 if (schema == NULL) { 961 lua_pushstring (L, "cannot load schema from lua table"); 972 lua_pushfstring (L, "cannot parse schema fil 1118 ucl_object_t *obj, *schema, *ext_refs = NULL; local [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectTrace.cpp | 331 : CommandObjectParsed(interpreter, "trace schema", 332 "Show the schema of the given trace plugin.", 333 "trace schema <plug-in>. Use the plug-in name " 348 "trace schema cannot be invoked without a plug-in as argument"); 356 StringRef schema = PluginManager::GetTraceSchema(index++); variable 357 if (schema.empty()) 360 result.AppendMessage(schema); 393 LoadSubCommand("schema",
|
/freebsd-current/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-current/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/ |
H A D | TraceIntelPTBundleLoader.cpp | 230 static std::string schema; local 231 if (schema.empty()) { 232 schema = R"({ 319 return schema;
|
/freebsd-current/contrib/wpa/src/wps/ |
H A D | upnp_xml.c | 186 * schema following actionName will be WFA scheme instead
|
/freebsd-current/contrib/libucl/include/ |
H A D | ucl.h | 1551 * @defgroup schema Schema functions 1552 * These functions are used to validate UCL objects using json schema format 1558 * Used to define UCL schema error 1563 UCL_SCHEMA_INVALID_SCHEMA, /**< schema is invalid */ 1574 * Generic ucl schema error 1583 * Validate object `obj` using schema object `schema`. 1584 * @param schema schema object 1588 * @return true if `obj` is valid using `schema` [all...] |