Home
last modified time | relevance | path

Searched full:schema (Results 1 – 25 of 2517) sorted by relevance

12345678910>>...101

/freebsd/sys/contrib/device-tree/Bindings/
H A Dwriting-schema.rst3 Writing Devicetree Bindings in json-schema
6 Devicetree bindings are written using json-schema vocabulary. Schema files are
11 Also see :ref:`example-schema`.
13 Schema Contents
16 Each schema doc is a structured json-schema which is defined by a set of
18 top-level json-schema properties used are:
21 A json-schema unique identifier string. The string must be a valid
22 URI typically containing the binding's filename and path. For DT schema, it must
24 references to other files specified in schema "$ref" properties. A $ref value
27 components of the current schema file's '$id' value. A URL is used even for
[all …]
H A Dexample-schema.yaml5 # All the top-level keys are standard json-schema keywords except for
10 $id: http://devicetree.org/schemas/example-schema.yaml#
11 # $schema is the meta-schema this schema should be validated with.
12 $schema: http://devicetree.org/meta-schemas/core.yaml#
29 # 'select' is a schema applied to a DT node to determine if this binding
30 # schema should be applied to the node. It is optional and by default the
33 # In this case, a 'false' schema will never match.
36 # A dictionary of DT properties for this binding schema
38 # More complicated schema can use oneOf (XOR), anyOf (OR), or allOf (AND)
42 # The boolean schema must be a list of schemas.
[all …]
/freebsd/share/man/man9/
H A Dpci_iov_schema.939 .Nd PCI SR-IOV config schema interface
47 .Fn pci_iov_schema_add_bool "nvlist_t *schema" "const char *name" \
50 .Fn pci_iov_schema_add_string "nvlist_t *schema" "const char *name" \
53 .Fn pci_iov_schema_add_uint8 "nvlist_t *schema" "const char *name" \
56 .Fn pci_iov_schema_add_uint16 "nvlist_t *schema" "const char *name" \
59 .Fn pci_iov_schema_add_uint32 "nvlist_t *schema" "const char *name" \
62 .Fn pci_iov_schema_add_uint64 "nvlist_t *schema" "const char *name" \
65 .Fn pci_iov_schema_add_unicast_mac "nvlist_t *schema" "const char *name" \
70 configuration schema is a data
73 Each PF driver defines two schema instances: the PF schema and the VF schema.
[all …]
/freebsd/sys/dev/pci/
H A Dpci_iov_schema.c159 pci_iov_schema_add_bool(nvlist_t *schema, const char *name, uint32_t flags, in pci_iov_schema_add_bool() argument
166 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_bool()
175 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_bool()
179 pci_iov_schema_add_string(nvlist_t *schema, const char *name, uint32_t flags, in pci_iov_schema_add_string() argument
186 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_add_string()
195 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_add_string()
199 pci_iov_schema_int(nvlist_t *schema, const char *name, const char *type, in pci_iov_schema_int() argument
206 nvlist_set_error(schema, ENOMEM); in pci_iov_schema_int()
215 nvlist_move_nvlist(schema, name, entry); in pci_iov_schema_int()
219 pci_iov_schema_add_uint8(nvlist_t *schema, const char *name, uint32_t flags, in pci_iov_schema_add_uint8() argument
[all …]
/freebsd/crypto/krb5/src/plugins/kdb/ldap/libkdb_ldap/
H A Dkerberos.ldif1 # Novell Kerberos Schema Definitions
42 dn: cn=schema
57 dn: cn=schema
70 dn: cn=schema
85 dn: cn=schema
97 dn: cn=schema
125 dn: cn=schema
137 dn: cn=schema
149 dn: cn=schema
163 dn: cn=schema
[all …]
/freebsd/sys/sys/
H A Diov.h55 * with a configuration schema. The schema is exported from the kernel as a
62 * schema.
69 * associated with this key is a nvlist that follows the device schema
73 * associated with this key is a nvlist that follows the device schema
77 * DEVICE SCHEMA NODE
80 * schema node format. The parameters in this node specify the
84 * with this key is an nvlist that follows the device/subsystem schema node
88 * DEVICE/SUBSYSTEM SCHEMA NODE
89 * 1) All keys in the device/subsystem schema node are optional.
93 * configuration values, and must be a nvlist in parameter schema node
[all …]
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,
51 void pci_iov_schema_add_vlan(nvlist_t *schema, const char *name,
/freebsd/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; in get_schema() local
59 /* Do the ioctl() once to fetch the size of the schema. */ in get_schema()
60 arg.schema = NULL; in get_schema()
65 err(1, "Could not fetch size of config schema"); in get_schema()
67 arg.schema = malloc(arg.len); in get_schema()
68 if (arg.schema == NULL) in get_schema()
69 err(1, "Could not allocate %zu bytes for schema", in get_schema()
72 /* Now do the ioctl() for real to get the schema. */ in get_schema()
[all …]
H A Dvalidate.c167 const nvlist_t *subsystem, *schema, *config; in validate_subsystem() local
173 schema = nvlist_get_nvlist(device_schema, subsystem_name); in validate_subsystem()
176 while ((name = nvlist_next(schema, &type, &cookie)) != NULL) { in validate_subsystem()
177 config = nvlist_get_nvlist(schema, name); in validate_subsystem()
193 validate_device(const nvlist_t *device, const nvlist_t *schema, in validate_device() argument
197 validate_subsystem(device, schema, DRIVER_CONFIG_NAME, config_name); in validate_device()
198 validate_subsystem(device, schema, IOV_CONFIG_NAME, config_name); in validate_device()
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
[all …]
H A Dparse.c188 * in the schema, and then adds the value to the configuration node.
192 const nvlist_t *schema) in add_config() argument
196 type = nvlist_get_string(schema, TYPE_SCHEMA_NAME); in add_config()
215 errx(1, "Unexpected type '%s' in schema", type); in add_config()
220 * validates that the key/value pair is valid in the schema, and then adds
225 const char *subsystem, const nvlist_t *schema) in parse_device_config() argument
237 driver_schema = nvlist_get_nvlist(schema, DRIVER_CONFIG_NAME); in parse_device_config()
238 iov_schema = nvlist_get_nvlist(schema, IOV_CONFIG_NAME); in parse_device_config()
272 * Parses the specified config file using the given schema, and returns an
278 parse_config_file(const char *filename, const nvlist_t *schema) in parse_config_file() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DMemProf.cpp27 const MemProfSchema &Schema) { in serializedSizeV0() argument
34 Size += PortableMemInfoBlock::serializedSize(Schema); in serializedSizeV0()
39 const MemProfSchema &Schema) { in serializedSizeV2() argument
44 Size += PortableMemInfoBlock::serializedSize(Schema); in serializedSizeV2()
49 const MemProfSchema &Schema) { in serializedSizeV3() argument
54 Size += PortableMemInfoBlock::serializedSize(Schema); in serializedSizeV3()
58 size_t IndexedAllocationInfo::serializedSize(const MemProfSchema &Schema, in serializedSize() argument
63 return serializedSizeV0(*this, Schema); in serializedSize()
65 return serializedSizeV2(*this, Schema); in serializedSize()
67 return serializedSizeV3(*this, Schema); in serializedSize()
[all …]
/freebsd/contrib/libucl/tests/schema/
H A DadditionalItems.json3 "description": "additionalItems as schema",
4 "schema": { object
10 "description": "additional items match schema",
15 "description": "additional items do not match schema",
22 "description": "items is schema, no additionalItems",
23 "schema": { object
29 "description": "all items match schema",
37 "schema": { object
56 "schema": {"additionalItems": false}, object
60 "items defaults to empty schema so everything is valid",
[all …]
H A Ddefinitions.json4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"}, object
7 "description": "valid definition schema",
19 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"}, object
22 "description": "invalid definition schema",
H A Ddefinitions.json.disabled4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"},
7 "description": "valid definition schema",
19 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"},
22 "description": "invalid definition schema",
H A DrefRemote.json4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"}, object
20 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"}, object
36 "schema": { object
37 "$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger"
55 "schema": {
56 "id": "http://highsecure.ru/ucl-schema/remotes/",
H A DrefRemote.json.disabled4 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/integer.json"},
20 "schema": {"$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/integer"},
36 "schema": {
37 "$ref": "http://highsecure.ru/ucl-schema/remotes/subSchemas.json#/refToInteger"
55 "schema": {
56 "id": "http://highsecure.ru/ucl-schema/remotes/",
H A Dref.json4 "schema": { object
35 "schema": { object
56 "schema": { object
77 "schema": { object
107 "schema": { object
130 "schema": {"$ref": "http://highsecure.ru/ucl-schema/schema#"}, object
H A Dnot.json4 "schema": { object
22 "schema": { object
44 "description": "not more complex schema",
45 "schema": { object
75 "schema": { object
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGPointerAuth.cpp24 /// Given a pointer-authentication schema, return a concrete "other"
27 const PointerAuthSchema &Schema, GlobalDecl Decl, QualType Type) { in getPointerAuthOtherDiscriminator() argument
28 switch (Schema.getOtherDiscrimination()) { in getPointerAuthOtherDiscriminator()
33 assert(!Type.isNull() && "type not provided for type-discriminated schema"); in getPointerAuthOtherDiscriminator()
39 "declaration not provided for decl-discriminated schema"); in getPointerAuthOtherDiscriminator()
44 return llvm::ConstantInt::get(IntPtrTy, Schema.getConstantDiscrimination()); in getPointerAuthOtherDiscriminator()
72 /// Return the abstract pointer authentication schema for a pointer to the given
75 const auto &Schema = getCodeGenOpts().PointerAuth.FunctionPointers; in getFunctionPointerAuthInfo() local
76 if (!Schema) in getFunctionPointerAuthInfo()
79 assert(!Schema.isAddressDiscriminated() && in getFunctionPointerAuthInfo()
[all …]
/freebsd/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, in ucl_schema_validate_object() argument
160 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { in ucl_schema_validate_object()
185 "additionalProperties attribute is invalid in schema"); in ucl_schema_validate_object()
196 "required attribute is invalid in schema"); in ucl_schema_validate_object()
246 /* Check if we have exactly the same properties in schema and object */ in ucl_schema_validate_object()
248 prop = ucl_object_lookup (schema, "properties"); in ucl_schema_validate_object()
253 pat = ucl_object_lookup (schema, "patternProperties"); in ucl_schema_validate_object()
304 ucl_schema_validate_number (const ucl_object_t *schema, in ucl_schema_validate_number() argument
313 while (ret && (elt = ucl_object_iterate (schema, &iter, true)) != NULL) { in ucl_schema_validate_number()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProf.h52 // Returns the full schema currently in use.
55 // Returns the schema consisting of the fields used for hot cold memory hinting.
59 // written partially by providing an appropriate schema to the serialize and
66 Schema.set(llvm::to_underlying(Id)); in PortableMemInfoBlock()
72 PortableMemInfoBlock(const MemProfSchema &Schema, const unsigned char *Ptr) { in PortableMemInfoBlock()
73 deserialize(Schema, Ptr); in PortableMemInfoBlock()
76 // Read the contents of \p Ptr based on the \p Schema to populate the
82 Schema.reset(); in deserialize()
96 Schema.set(llvm::to_underlying(Id)); in deserialize()
100 // Write the contents of the MemInfoBlock based on the \p Schema provided to
[all …]
/freebsd/contrib/kyua/store/
H A Dmigrate.cpp66 /// Schema version at which we switched to results files.
70 /// Queries the schema version of the given database.
72 /// \param file The database from which to query the schema version.
74 /// \return The schema version number.
91 /// \param version_from Current schema version in the database.
92 /// \param version_to Schema version to migrate to.
106 LI(F("Migrating schema of %s from version %s to %s") % file % version_from in migrate_schema_step()
134 throw store::error(F("Schema migration failed: %s") % e.what()); in migrate_schema_step()
217 /// Calculates the path to a schema migration file.
231 /// Backs up a database for schema migration purposes.
[all …]
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(); in initialize() local
111 LI(F("Populating new database with schema from %s") % schema); in initialize()
113 db.exec(utils::read_file(schema)); in initialize()
119 "%s") % schema); in initialize()
128 throw error(F("Cannot read database schema '%s'") % schema); in initialize()
/freebsd/contrib/libucl/tests/
H A Dtest_schema.c65 perform_test (const ucl_object_t *schema, const ucl_object_t *obj, in perform_test() argument
80 match = ucl_object_validate (schema, data, err); in perform_test()
87 fprintf (stdout, "%s\n", ucl_object_emit (schema, UCL_EMIT_CONFIG)); in perform_test()
99 const ucl_object_t *schema, *tests, *description, *test; in perform_tests() local
106 schema = ucl_object_lookup (obj, "schema"); in perform_tests()
110 if (schema == NULL || tests == NULL || description == NULL) { in perform_tests()
118 if (!perform_test (schema, test, &err)) { in perform_tests()
/freebsd/contrib/libucl/utils/
H A Ducl-tool.c27 fprintf(out, " [-s|--schema file] [-f|--format format]\n\n"); in usage()
33 fprintf(out, " --schema - specify schema file for validation\n"); in usage()
42 const char *schema = NULL, *parm, *val; in main() local
75 } else if ((strcmp(parm, "--schema") == 0) || (strcmp(parm, "-s") == 0)) { in main()
78 schema = val; in main()
133 if (schema != NULL) { in main()
138 if (!ucl_parser_add_file(schema_parser, schema)) { in main()
139 fprintf(stderr, "Failed to parse schema file: %s\n", in main()

12345678910>>...101