Searched refs:schema (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-current/sys/sys/
H A Diov_schema.h37 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 Diov.h53 * 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 Dschema_private.h30 int pci_iov_validate_schema(const nvlist_t *schema);
H A Dpci_iov_schema.c153 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 Dpci_iov.c92 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 Diovctl.c48 * 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 Dvalidate.c167 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 Dparse.c165 * 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 Dtest_schema.c65 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 Dschema.test7 for i in ${TEST_DIR}/schema/*.json ; do
9 printf "running schema test suite $_name... "
H A DMakefile.am1 EXTRA_DIST = $(TESTS) basic schema generate.res \
6 schema.test \
H A Drun_tests.sh42 for i in ${TEST_DIR}/schema/*.json ; do
44 printf "running schema test suite $_name... "
/freebsd-current/contrib/kyua/store/
H A Dwrite_backend.cpp52 /// 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 Dschema_inttest.cpp445 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 Dtest_validation.py8 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 Ducl_schema.c43 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 DMakefile4 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 Ducl-tool.c27 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 Duclmodule.c261 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 Dlua_ucl.c937 * @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 DCommandObjectTrace.cpp331 : 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 Dxml_libxml2.c60 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 DTraceIntelPTBundleLoader.cpp230 static std::string schema; local
231 if (schema.empty()) {
232 schema = R"({
319 return schema;
/freebsd-current/contrib/wpa/src/wps/
H A Dupnp_xml.c186 * schema following actionName will be WFA scheme instead
/freebsd-current/contrib/libucl/include/
H A Ducl.h1551 * @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...]

Completed in 391 milliseconds

12