xref: /freebsd/sys/sys/nv_namespace.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause
3  *
4  * Copyright (c) 2022 Rubicon Communications, LLC (Netgate)
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  * 2. Redistributions in binary form must reproduce the above copyright
13  *    notice, this list of conditions and the following disclaimer in the
14  *    documentation and/or other materials provided with the distribution.
15  *
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26  * SUCH DAMAGE.
27  */
28 
29 #ifndef _NV_NAMESPACE_H_
30 #define _NV_NAMESPACE_H_
31 
32 #define cnvlist_free_binary		FreeBSD_cnvlist_free_binary
33 #define cnvlist_free_bool		FreeBSD_cnvlist_free_bool
34 #define cnvlist_free_bool_array		FreeBSD_cnvlist_free_bool_array
35 #define cnvlist_free_descriptor		FreeBSD_cnvlist_free_descriptor
36 #define cnvlist_free_descriptor_array	FreeBSD_cnvlist_free_descriptor_array
37 #define cnvlist_free_number		FreeBSD_cnvlist_free_number
38 #define cnvlist_free_number_array	FreeBSD_cnvlist_free_number_array
39 #define cnvlist_free_nvlist		FreeBSD_cnvlist_free_nvlist
40 #define cnvlist_free_nvlist_array	FreeBSD_cnvlist_free_nvlist_array
41 #define cnvlist_free_string		FreeBSD_cnvlist_free_string
42 #define cnvlist_free_string_array	FreeBSD_cnvlist_free_string_array
43 #define cnvlist_get_binary		FreeBSD_cnvlist_get_binary
44 #define cnvlist_get_bool		FreeBSD_cnvlist_get_bool
45 #define cnvlist_get_bool_array		FreeBSD_cnvlist_get_bool_array
46 #define cnvlist_get_descriptor		FreeBSD_cnvlist_get_descriptor
47 #define cnvlist_get_descriptor_array	FreeBSD_cnvlist_get_descriptor_array
48 #define cnvlist_get_number		FreeBSD_cnvlist_get_number
49 #define cnvlist_get_number_array	FreeBSD_cnvlist_get_number_array
50 #define cnvlist_get_nvlist		FreeBSD_cnvlist_get_nvlist
51 #define cnvlist_get_nvlist_array	FreeBSD_cnvlist_get_nvlist_array
52 #define cnvlist_get_string		FreeBSD_cnvlist_get_string
53 #define cnvlist_get_string_array	FreeBSD_cnvlist_get_string_array
54 #define cnvlist_name			FreeBSD_cnvlist_name
55 #define cnvlist_take_binary		FreeBSD_cnvlist_take_binary
56 #define cnvlist_take_bool		FreeBSD_cnvlist_take_bool
57 #define cnvlist_take_bool_array		FreeBSD_cnvlist_take_bool_array
58 #define cnvlist_take_descriptor		FreeBSD_cnvlist_take_descriptor
59 #define cnvlist_take_descriptor_array	FreeBSD_cnvlist_take_descriptor_array
60 #define cnvlist_take_number		FreeBSD_cnvlist_take_number
61 #define cnvlist_take_number_array	FreeBSD_cnvlist_take_number_array
62 #define cnvlist_take_nvlist		FreeBSD_cnvlist_take_nvlist
63 #define cnvlist_take_nvlist_array	FreeBSD_cnvlist_take_nvlist_array
64 #define cnvlist_take_string		FreeBSD_cnvlist_take_string
65 #define cnvlist_take_string_array	FreeBSD_cnvlist_take_string_array
66 #define cnvlist_type			FreeBSD_cnvlist_type
67 #define dnvlist_get_binary		FreeBSD_dnvlist_get_binary
68 #define dnvlist_get_bool		FreeBSD_dnvlist_get_bool
69 #define dnvlist_get_descriptor		FreeBSD_dnvlist_get_descriptor
70 #define dnvlist_get_number		FreeBSD_dnvlist_get_number
71 #define dnvlist_get_nvlist		FreeBSD_dnvlist_get_nvlist
72 #define dnvlist_get_string		FreeBSD_dnvlist_get_string
73 #define dnvlist_take_binary		FreeBSD_dnvlist_take_binary
74 #define dnvlist_take_bool		FreeBSD_dnvlist_take_bool
75 #define dnvlist_take_descriptor		FreeBSD_dnvlist_take_descriptor
76 #define dnvlist_take_number		FreeBSD_dnvlist_take_number
77 #define dnvlist_take_nvlist		FreeBSD_dnvlist_take_nvlist
78 #define dnvlist_take_string		FreeBSD_dnvlist_take_string
79 #define nvlist				FreeBSD_nvlist
80 #define nvlist_add_binary		FreeBSD_nvlist_add_binary
81 #define nvlist_add_bool			FreeBSD_nvlist_add_bool
82 #define nvlist_add_bool_array		FreeBSD_nvlist_add_bool_array
83 #define nvlist_add_descriptor		FreeBSD_nvlist_add_descriptor
84 #define nvlist_add_descriptor_array	FreeBSD_nvlist_add_descriptor_array
85 #define nvlist_add_null			FreeBSD_nvlist_add_null
86 #define nvlist_add_number		FreeBSD_nvlist_add_number
87 #define nvlist_add_number_array		FreeBSD_nvlist_add_number_array
88 #define nvlist_add_nvlist		FreeBSD_nvlist_add_nvlist
89 #define nvlist_add_nvlist_array		FreeBSD_nvlist_add_nvlist_array
90 #define nvlist_add_nvpair		FreeBSD_nvlist_add_nvpair
91 #define nvlist_add_string		FreeBSD_nvlist_add_string
92 #define nvlist_add_string_array		FreeBSD_nvlist_add_string_array
93 #define nvlist_add_stringf		FreeBSD_nvlist_add_stringf
94 #define nvlist_add_stringv		FreeBSD_nvlist_add_stringv
95 #define nvlist_append_bool_array	FreeBSD_nvlist_append_bool_array
96 #define nvlist_append_descriptor_array	FreeBSD_nvlist_append_descriptor_array
97 #define nvlist_append_number_array	FreeBSD_nvlist_append_number_array
98 #define nvlist_append_nvlist_array	FreeBSD_nvlist_append_nvlist_array
99 #define nvlist_append_string_array	FreeBSD_nvlist_append_string_array
100 #define nvlist_clone			FreeBSD_nvlist_clone
101 #define nvlist_create			FreeBSD_nvlist_create
102 #define nvlist_descriptors		FreeBSD_nvlist_descriptors
103 #define nvlist_destroy			FreeBSD_nvlist_destroy
104 #define nvlist_dump			FreeBSD_nvlist_dump
105 #define nvlist_empty			FreeBSD_nvlist_empty
106 #define nvlist_error			FreeBSD_nvlist_error
107 #define nvlist_exists			FreeBSD_nvlist_exists
108 #define nvlist_exists_binary		FreeBSD_nvlist_exists_binary
109 #define nvlist_exists_bool		FreeBSD_nvlist_exists_bool
110 #define nvlist_exists_bool_array	FreeBSD_nvlist_exists_bool_array
111 #define nvlist_exists_descriptor	FreeBSD_nvlist_exists_descriptor
112 #define nvlist_exists_descriptor_array	FreeBSD_nvlist_exists_descriptor_array
113 #define nvlist_exists_null		FreeBSD_nvlist_exists_null
114 #define nvlist_exists_number		FreeBSD_nvlist_exists_number
115 #define nvlist_exists_number_array	FreeBSD_nvlist_exists_number_array
116 #define nvlist_exists_nvlist		FreeBSD_nvlist_exists_nvlist
117 #define nvlist_exists_nvlist_array	FreeBSD_nvlist_exists_nvlist_array
118 #define nvlist_exists_string		FreeBSD_nvlist_exists_string
119 #define nvlist_exists_string_array	FreeBSD_nvlist_exists_string_array
120 #define nvlist_exists_type		FreeBSD_nvlist_exists_type
121 #define nvlist_fdump			FreeBSD_nvlist_fdump
122 #define nvlist_first_nvpair		FreeBSD_nvlist_first_nvpair
123 #define nvlist_flags			FreeBSD_nvlist_flags
124 #define nvlist_free			FreeBSD_nvlist_free
125 #define nvlist_free_binary		FreeBSD_nvlist_free_binary
126 #define nvlist_free_binary_array	FreeBSD_nvlist_free_binary_array
127 #define nvlist_free_bool		FreeBSD_nvlist_free_bool
128 #define nvlist_free_bool_array		FreeBSD_nvlist_free_bool_array
129 #define nvlist_free_descriptor		FreeBSD_nvlist_free_descriptor
130 #define nvlist_free_descriptor_array	FreeBSD_nvlist_free_descriptor_array
131 #define nvlist_free_null		FreeBSD_nvlist_free_null
132 #define nvlist_free_number		FreeBSD_nvlist_free_number
133 #define nvlist_free_number_array	FreeBSD_nvlist_free_number_array
134 #define nvlist_free_nvlist		FreeBSD_nvlist_free_nvlist
135 #define nvlist_free_nvlist_array	FreeBSD_nvlist_free_nvlist_array
136 #define nvlist_free_nvpair		FreeBSD_nvlist_free_nvpair
137 #define nvlist_free_string		FreeBSD_nvlist_free_string
138 #define nvlist_free_string_array	FreeBSD_nvlist_free_string_array
139 #define nvlist_free_type		FreeBSD_nvlist_free_type
140 #define nvlist_get_array_next		FreeBSD_nvlist_get_array_next
141 #define nvlist_get_array_next_nvpair	FreeBSD_nvlist_get_array_next_nvpair
142 #define nvlist_get_binary		FreeBSD_nvlist_get_binary
143 #define nvlist_get_bool			FreeBSD_nvlist_get_bool
144 #define nvlist_get_bool_array		FreeBSD_nvlist_get_bool_array
145 #define nvlist_get_descriptor		FreeBSD_nvlist_get_descriptor
146 #define nvlist_get_descriptor_array	FreeBSD_nvlist_get_descriptor_array
147 #define nvlist_get_number		FreeBSD_nvlist_get_number
148 #define nvlist_get_number_array		FreeBSD_nvlist_get_number_array
149 #define nvlist_get_nvlist		FreeBSD_nvlist_get_nvlist
150 #define nvlist_get_nvlist_array		FreeBSD_nvlist_get_nvlist_array
151 #define nvlist_get_nvpair		FreeBSD_nvlist_get_nvpair
152 #define nvlist_get_nvpair_parent	FreeBSD_nvlist_get_nvpair_parent
153 #define nvlist_get_pararr		FreeBSD_nvlist_get_pararr
154 #define nvlist_get_parent		FreeBSD_nvlist_get_parent
155 #define nvlist_get_string		FreeBSD_nvlist_get_string
156 #define nvlist_get_string_array		FreeBSD_nvlist_get_string_array
157 #define nvlist_in_array			FreeBSD_nvlist_in_array
158 #define nvlist_move_binary		FreeBSD_nvlist_move_binary
159 #define nvlist_move_bool_array		FreeBSD_nvlist_move_bool_array
160 #define nvlist_move_descriptor		FreeBSD_nvlist_move_descriptor
161 #define nvlist_move_descriptor_array	FreeBSD_nvlist_move_descriptor_array
162 #define nvlist_move_number_array	FreeBSD_nvlist_move_number_array
163 #define nvlist_move_nvlist		FreeBSD_nvlist_move_nvlist
164 #define nvlist_move_nvlist_array	FreeBSD_nvlist_move_nvlist_array
165 #define nvlist_move_nvpair		FreeBSD_nvlist_move_nvpair
166 #define nvlist_move_string		FreeBSD_nvlist_move_string
167 #define nvlist_move_string_array	FreeBSD_nvlist_move_string_array
168 #define nvlist_ndescriptors		FreeBSD_nvlist_ndescriptors
169 #define nvlist_next			FreeBSD_nvlist_next
170 #define nvlist_next_nvpair		FreeBSD_nvlist_next_nvpair
171 #define nvlist_pack			FreeBSD_nvlist_pack
172 #define nvlist_prev_nvpair		FreeBSD_nvlist_prev_nvpair
173 #define nvlist_recv			FreeBSD_nvlist_recv
174 #define nvlist_remove_nvpair		FreeBSD_nvlist_remove_nvpair
175 #define nvlist_report_missing		FreeBSD_nvlist_report_missing
176 #define nvlist_send			FreeBSD_nvlist_send
177 #define nvlist_set_array_next		FreeBSD_nvlist_set_array_next
178 #define nvlist_set_error		FreeBSD_nvlist_set_error
179 #define nvlist_set_flags		FreeBSD_nvlist_set_flags
180 #define nvlist_set_parent		FreeBSD_nvlist_set_parent
181 #define nvlist_size			FreeBSD_nvlist_size
182 #define nvlist_t			FreeBSD_nvlist_t
183 #define nvlist_take_binary		FreeBSD_nvlist_take_binary
184 #define nvlist_take_bool		FreeBSD_nvlist_take_bool
185 #define nvlist_take_bool_array		FreeBSD_nvlist_take_bool_array
186 #define nvlist_take_descriptor		FreeBSD_nvlist_take_descriptor
187 #define nvlist_take_descriptor_array	FreeBSD_nvlist_take_descriptor_array
188 #define nvlist_take_number		FreeBSD_nvlist_take_number
189 #define nvlist_take_number_array	FreeBSD_nvlist_take_number_array
190 #define nvlist_take_nvlist		FreeBSD_nvlist_take_nvlist
191 #define nvlist_take_nvlist_array	FreeBSD_nvlist_take_nvlist_array
192 #define nvlist_take_nvpair		FreeBSD_nvlist_take_nvpair
193 #define nvlist_take_string		FreeBSD_nvlist_take_string
194 #define nvlist_take_string_array	FreeBSD_nvlist_take_string_array
195 #define nvlist_unpack			FreeBSD_nvlist_unpack
196 #define nvlist_unpack_header		FreeBSD_nvlist_unpack_header
197 #define nvlist_xfer			FreeBSD_nvlist_xfer
198 #define nvpair_append_bool_array	FreeBSD_nvpair_append_bool_array
199 #define nvpair_append_descriptor_array	FreeBSD_nvpair_append_descriptor_array
200 #define nvpair_append_number_array	FreeBSD_nvpair_append_number_array
201 #define nvpair_append_nvlist_array	FreeBSD_nvpair_append_nvlist_array
202 #define nvpair_append_string_array	FreeBSD_nvpair_append_string_array
203 #define nvpair_assert			FreeBSD_nvpair_assert
204 #define nvpair_clone			FreeBSD_nvpair_clone
205 #define nvpair_create_binary		FreeBSD_nvpair_create_binary
206 #define nvpair_create_bool		FreeBSD_nvpair_create_bool
207 #define nvpair_create_bool_array	FreeBSD_nvpair_create_bool_array
208 #define nvpair_create_descriptor	FreeBSD_nvpair_create_descriptor
209 #define nvpair_create_descriptor_array	FreeBSD_nvpair_create_descriptor_array
210 #define nvpair_create_null		FreeBSD_nvpair_create_null
211 #define nvpair_create_number		FreeBSD_nvpair_create_number
212 #define nvpair_create_number_array	FreeBSD_nvpair_create_number_array
213 #define nvpair_create_nvlist		FreeBSD_nvpair_create_nvlist
214 #define nvpair_create_nvlist_array	FreeBSD_nvpair_create_nvlist_array
215 #define nvpair_create_string		FreeBSD_nvpair_create_string
216 #define nvpair_create_string_array	FreeBSD_nvpair_create_string_array
217 #define nvpair_create_stringf		FreeBSD_nvpair_create_stringf
218 #define nvpair_create_stringv		FreeBSD_nvpair_create_stringv
219 #define nvpair_free			FreeBSD_nvpair_free
220 #define nvpair_free_structure		FreeBSD_nvpair_free_structure
221 #define nvpair_get_binary		FreeBSD_nvpair_get_binary
222 #define nvpair_get_bool			FreeBSD_nvpair_get_bool
223 #define nvpair_get_bool_array		FreeBSD_nvpair_get_bool_array
224 #define nvpair_get_descriptor		FreeBSD_nvpair_get_descriptor
225 #define nvpair_get_descriptor_array	FreeBSD_nvpair_get_descriptor_array
226 #define nvpair_get_number		FreeBSD_nvpair_get_number
227 #define nvpair_get_number_array		FreeBSD_nvpair_get_number_array
228 #define nvpair_get_nvlist		FreeBSD_nvpair_get_nvlist
229 #define nvpair_get_nvlist_array		FreeBSD_nvpair_get_nvlist_array
230 #define nvpair_get_string		FreeBSD_nvpair_get_string
231 #define nvpair_get_string_array		FreeBSD_nvpair_get_string_array
232 #define nvpair_header_size		FreeBSD_nvpair_header_size
233 #define nvpair_init_datasize		FreeBSD_nvpair_init_datasize
234 #define nvpair_insert			FreeBSD_nvpair_insert
235 #define nvpair_move_binary		FreeBSD_nvpair_move_binary
236 #define nvpair_move_bool_array		FreeBSD_nvpair_move_bool_array
237 #define nvpair_move_descriptor		FreeBSD_nvpair_move_descriptor
238 #define nvpair_move_descriptor_array	FreeBSD_nvpair_move_descriptor_array
239 #define nvpair_move_number_array	FreeBSD_nvpair_move_number_array
240 #define nvpair_move_nvlist		FreeBSD_nvpair_move_nvlist
241 #define nvpair_move_nvlist_array	FreeBSD_nvpair_move_nvlist_array
242 #define nvpair_move_string		FreeBSD_nvpair_move_string
243 #define nvpair_move_string_array	FreeBSD_nvpair_move_string_array
244 #define nvpair_name			FreeBSD_nvpair_name
245 #define nvpair_next			FreeBSD_nvpair_next
246 #define nvpair_nvlist			FreeBSD_nvpair_nvlist
247 #define nvpair_pack_binary		FreeBSD_nvpair_pack_binary
248 #define nvpair_pack_bool		FreeBSD_nvpair_pack_bool
249 #define nvpair_pack_bool_array		FreeBSD_nvpair_pack_bool_array
250 #define nvpair_pack_descriptor		FreeBSD_nvpair_pack_descriptor
251 #define nvpair_pack_descriptor_array	FreeBSD_nvpair_pack_descriptor_array
252 #define nvpair_pack_header		FreeBSD_nvpair_pack_header
253 #define nvpair_pack_null		FreeBSD_nvpair_pack_null
254 #define nvpair_pack_number		FreeBSD_nvpair_pack_number
255 #define nvpair_pack_number_array	FreeBSD_nvpair_pack_number_array
256 #define nvpair_pack_nvlist_array_next	FreeBSD_nvpair_pack_nvlist_array_next
257 #define nvpair_pack_nvlist_up		FreeBSD_nvpair_pack_nvlist_up
258 #define nvpair_pack_string		FreeBSD_nvpair_pack_string
259 #define nvpair_pack_string_array	FreeBSD_nvpair_pack_string_array
260 #define nvpair_prev			FreeBSD_nvpair_prev
261 #define nvpair_remove			FreeBSD_nvpair_remove
262 #define nvpair_size			FreeBSD_nvpair_size
263 #define nvpair_type			FreeBSD_nvpair_type
264 #define nvpair_type_string		FreeBSD_nvpair_type_string
265 #define nvpair_unpack			FreeBSD_nvpair_unpack
266 #define nvpair_unpack_binary		FreeBSD_nvpair_unpack_binary
267 #define nvpair_unpack_bool		FreeBSD_nvpair_unpack_bool
268 #define nvpair_unpack_bool_array	FreeBSD_nvpair_unpack_bool_array
269 #define nvpair_unpack_descriptor	FreeBSD_nvpair_unpack_descriptor
270 #define nvpair_unpack_descriptor_array	FreeBSD_nvpair_unpack_descriptor_array
271 #define nvpair_unpack_header		FreeBSD_nvpair_unpack_header
272 #define nvpair_unpack_null		FreeBSD_nvpair_unpack_null
273 #define nvpair_unpack_number		FreeBSD_nvpair_unpack_number
274 #define nvpair_unpack_number_array	FreeBSD_nvpair_unpack_number_array
275 #define nvpair_unpack_nvlist		FreeBSD_nvpair_unpack_nvlist
276 #define nvpair_unpack_nvlist_array	FreeBSD_nvpair_unpack_nvlist_array
277 #define nvpair_unpack_string		FreeBSD_nvpair_unpack_string
278 #define nvpair_unpack_string_array	FreeBSD_nvpair_unpack_string_array
279 
280 #endif
281