This repository was archived by the owner on May 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyscall_schema.json
More file actions
163 lines (163 loc) · 3.81 KB
/
Copy pathsyscall_schema.json
File metadata and controls
163 lines (163 loc) · 3.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"description": "Schema for the list of Zircon syscalls",
"type": "object",
"properties": {
"syscalls": {
"description": "The Zircon syscall methods",
"type": "array",
"items": {
"$ref": "#/definitions/syscall"
}
}
},
"required": [
"syscalls"
],
"additionalProperties": false,
"definitions": {
"syscall": {
"description": "A syscall method",
"type": "object",
"properties": {
"name": {
"description": "The method name, which is a valid C identifier",
"type": "string"
},
"attributes": {
"description": "Metadata about the method",
"type": "array",
"items": {
"$ref": "#/definitions/methodAttribute"
}
},
"arguments": {
"description": "The method's parameters",
"type": "array",
"items": {
"$ref": "#/definitions/argument"
}
},
"return_type": {
"description": "Return type of the method",
"$ref": "#/definitions/objectType"
}
},
"required": [
"name",
"attributes",
"arguments",
"return_type"
],
"additionalProperties": false
},
"methodAttribute": {
"description": "A method attribute",
"type": "string",
"enum": [
"blocking",
"const",
"deprecated",
"internal",
"noreturn",
"test_category1",
"test_category2",
"vdsocall",
"*"
]
},
"argument": {
"description": "A method parameter",
"type": "object",
"properties": {
"name": {
"description": "The parameter's name",
"type": "string"
},
"type": {
"description": "The object type of this parameter",
"$ref": "#/definitions/objectType"
},
"is_array": {
"description": "Whether the parameter is an array of objects",
"type": "boolean"
},
"array_multipliers": {
"description": "For an array, the parameters to multiply in order to compute the array's size",
"type": "array",
"items": {
"type": "string"
}
},
"array_count": {
"description": "An array's size",
"type": "integer"
},
"attributes": {
"description": "Some metadata about the parameter",
"type": "array",
"items": {
"$ref": "#/definitions/parameterAttribute"
}
}
},
"required": [
"name",
"type",
"is_array",
"attributes"
],
"additionalProperties": false
},
"objectType": {
"description": "An object's type",
"type": "string",
"enum": [
"any",
"bool",
"char",
"int",
"int32_t",
"int64_t",
"size_t",
"uint16_t",
"uint32_t",
"uint64_t",
"uint8_t",
"uintptr_t",
"void",
"zx_channel_call_args_t",
"zx_duration_t",
"zx_futex_t",
"zx_handle_info_t",
"zx_handle_t",
"zx_paddr_t",
"zx_pci_bar_t",
"zx_pci_init_arg_t",
"zx_pcie_device_info_t",
"zx_port_packet_t",
"zx_profile_info_t",
"zx_rights_t",
"zx_signals_t",
"zx_status_t",
"zx_system_powerctl_arg_t",
"zx_time_t",
"zx_vaddr_t",
"zx_wait_item_t"
]
},
"parameterAttribute": {
"description": "A parameter attribute",
"type": "string",
"enum": [
"features",
"handle_acquire",
"handle_release",
"handle_release_always",
"optional",
"IN",
"INOUT",
"OUT"
]
}
}
}