Print this page
feth prototype
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/truss/codes.c
+++ new/usr/src/cmd/truss/codes.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 * Copyright (c) 2011, 2017 by Delphix. All rights reserved.
25 25 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
26 26 * Copyright 2019 Joyent, Inc.
27 27 * Copyright (c) 2014, OmniTI Computer Consulting, Inc. All rights reserved.
28 28 */
29 29
30 30 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
31 31 /* All Rights Reserved */
32 32
33 33
34 34 #include <stdio.h>
35 35 #include <stdlib.h>
36 36 #include <unistd.h>
37 37 #include <sys/types.h>
38 38 #include <libproc.h>
39 39
40 40 #include <ctype.h>
41 41 #include <string.h>
42 42 #include <sys/dlpi.h>
43 43 #include <sys/ipc.h>
44 44 #include <sys/ipc_impl.h>
45 45 #include <sys/msg.h>
46 46 #include <sys/sem.h>
47 47 #include <sys/shm.h>
48 48 #include <sys/fstyp.h>
49 49 #if defined(__i386) || defined(__amd64)
50 50 #include <sys/sysi86.h>
51 51 #endif /* __i386 */
52 52 #include <sys/unistd.h>
53 53 #include <sys/file.h>
54 54 #include <sys/tiuser.h>
55 55 #include <sys/timod.h>
56 56 #include <sys/stream.h>
57 57 #include <sys/stropts.h>
58 58 #include <sys/termios.h>
59 59 #include <sys/termiox.h>
60 60 #include <sys/jioctl.h>
61 61 #include <sys/filio.h>
62 62 #include <fcntl.h>
63 63 #include <sys/termio.h>
64 64 #include <sys/stermio.h>
65 65 #include <sys/ttold.h>
66 66 #include <sys/mount.h>
67 67 #include <sys/utssys.h>
68 68 #include <sys/sysconfig.h>
69 69 #include <sys/statvfs.h>
70 70 #include <sys/kstat.h>
71 71 #include <sys/audio.h>
72 72 #include <sys/mixer.h>
73 73 #include <sys/cpc_impl.h>
74 74 #include <sys/devpoll.h>
75 75 #include <sys/strredir.h>
76 76 #include <sys/sockio.h>
77 77 #include <netinet/ip_mroute.h>
78 78 #include <net/if.h>
79 79 #include <net/if_arp.h>
80 80 #include <sys/ptyvar.h>
↓ open down ↓ |
80 lines elided |
↑ open up ↑ |
81 81 #include <sys/des.h>
82 82 #include <sys/prnio.h>
83 83 #include <sys/dtrace.h>
84 84 #include <sys/crypto/ioctladmin.h>
85 85 #include <sys/crypto/ioctl.h>
86 86 #include <sys/kbio.h>
87 87 #include <sys/ptms.h>
88 88 #include <sys/aggr.h>
89 89 #include <sys/dld.h>
90 90 #include <net/simnet.h>
91 +#include <net/feth.h>
91 92 #include <sys/vnic.h>
92 93 #include <sys/fs/zfs.h>
93 94 #include <inet/kssl/kssl.h>
94 95 #include <sys/dkio.h>
95 96 #include <sys/fdio.h>
96 97 #include <sys/cdio.h>
97 98 #include <sys/scsi/impl/uscsi.h>
98 99 #include <sys/devinfo_impl.h>
99 100 #include <sys/dumpadm.h>
100 101 #include <sys/mntio.h>
101 102 #include <inet/iptun.h>
102 103 #include <sys/zcons.h>
103 104 #include <sys/usb/clients/hid/hid.h>
104 105 #include <sys/pm.h>
105 106 #include <sys/soundcard.h>
106 107 #include <sys/cpuid_drv.h>
107 108
108 109 #include "ramdata.h"
109 110 #include "proto.h"
110 111
111 112 #define FCNTLMIN F_DUPFD
112 113 #define FCNTLMAX F_FLOCKW
113 114 const char *const FCNTLname[] = {
114 115 "F_DUPFD",
115 116 "F_GETFD",
116 117 "F_SETFD",
117 118 "F_GETFL",
118 119 "F_SETFL",
119 120 "F_O_GETLK",
120 121 "F_SETLK",
121 122 "F_SETLKW",
122 123 "F_CHKFL",
123 124 "F_DUP2FD",
124 125 "F_ALLOCSP",
125 126 "F_FREESP",
126 127 NULL, /* 12 */
127 128 NULL, /* 13 */
128 129 "F_GETLK",
129 130 NULL, /* 15 */
130 131 NULL, /* 16 */
131 132 NULL, /* 17 */
132 133 NULL, /* 18 */
133 134 NULL, /* 19 */
134 135 NULL, /* 20 */
135 136 NULL, /* 21 */
136 137 NULL, /* 22 */
137 138 "F_GETOWN",
138 139 "F_SETOWN",
139 140 "F_REVOKE",
140 141 "F_HASREMOTELOCKS",
141 142 "F_FREESP64",
142 143 NULL, /* 28 */
143 144 NULL, /* 29 */
144 145 NULL, /* 30 */
145 146 NULL, /* 31 */
146 147 NULL, /* 32 */
147 148 "F_GETLK64",
148 149 "F_SETLK64",
149 150 "F_SETLKW64",
150 151 "F_DUP2FD_CLOEXEC",
151 152 "F_DUPFD_CLOEXEC",
152 153 NULL, /* 38 */
153 154 NULL, /* 39 */
154 155 "F_SHARE",
155 156 "F_UNSHARE",
156 157 "F_SETLK_NBMAND",
157 158 "F_SHARE_NBMAND",
158 159 "F_SETLK64_NBMAND",
159 160 NULL, /* 45 */
160 161 "F_BADFD",
161 162 "F_OFD_GETLK",
162 163 "F_OFD_SETLK",
163 164 "F_OFD_SETLKW",
164 165 NULL, /* 50 */
165 166 NULL, /* 51 */
166 167 NULL, /* 52 */
167 168 "F_FLOCK",
168 169 "F_FLOCKW"
169 170 };
170 171
171 172 #define SYSFSMIN GETFSIND
172 173 #define SYSFSMAX GETNFSTYP
173 174 const char *const SYSFSname[] = {
174 175 "GETFSIND",
175 176 "GETFSTYP",
176 177 "GETNFSTYP"
177 178 };
178 179
179 180 #define SCONFMIN _CONFIG_NGROUPS
180 181 #define SCONFMAX _CONFIG_EPHID_MAX
181 182 const char *const SCONFname[] = {
182 183 "_CONFIG_NGROUPS", /* 2 */
183 184 "_CONFIG_CHILD_MAX", /* 3 */
184 185 "_CONFIG_OPEN_FILES", /* 4 */
185 186 "_CONFIG_POSIX_VER", /* 5 */
186 187 "_CONFIG_PAGESIZE", /* 6 */
187 188 "_CONFIG_CLK_TCK", /* 7 */
188 189 "_CONFIG_XOPEN_VER", /* 8 */
189 190 "_CONFIG_HRESCLK_TCK", /* 9 */
190 191 "_CONFIG_PROF_TCK", /* 10 */
191 192 "_CONFIG_NPROC_CONF", /* 11 */
192 193 "_CONFIG_NPROC_ONLN", /* 12 */
193 194 "_CONFIG_AIO_LISTIO_MAX", /* 13 */
194 195 "_CONFIG_AIO_MAX", /* 14 */
195 196 "_CONFIG_AIO_PRIO_DELTA_MAX", /* 15 */
196 197 "_CONFIG_DELAYTIMER_MAX", /* 16 */
197 198 "_CONFIG_MQ_OPEN_MAX", /* 17 */
198 199 "_CONFIG_MQ_PRIO_MAX", /* 18 */
199 200 "_CONFIG_RTSIG_MAX", /* 19 */
200 201 "_CONFIG_SEM_NSEMS_MAX", /* 20 */
201 202 "_CONFIG_SEM_VALUE_MAX", /* 21 */
202 203 "_CONFIG_SIGQUEUE_MAX", /* 22 */
203 204 "_CONFIG_SIGRT_MIN", /* 23 */
204 205 "_CONFIG_SIGRT_MAX", /* 24 */
205 206 "_CONFIG_TIMER_MAX", /* 25 */
206 207 "_CONFIG_PHYS_PAGES", /* 26 */
207 208 "_CONFIG_AVPHYS_PAGES", /* 27 */
208 209 "_CONFIG_COHERENCY", /* 28 */
209 210 "_CONFIG_SPLIT_CACHE", /* 29 */
210 211 "_CONFIG_ICACHESZ", /* 30 */
211 212 "_CONFIG_DCACHESZ", /* 31 */
212 213 "_CONFIG_ICACHELINESZ", /* 32 */
213 214 "_CONFIG_DCACHELINESZ", /* 33 */
214 215 "_CONFIG_ICACHEBLKSZ", /* 34 */
215 216 "_CONFIG_DCACHEBLKSZ", /* 35 */
216 217 "_CONFIG_DCACHETBLKSZ", /* 36 */
217 218 "_CONFIG_ICACHE_ASSOC", /* 37 */
218 219 "_CONFIG_DCACHE_ASSOC", /* 38 */
219 220 NULL, /* 39 */
220 221 NULL, /* 40 */
221 222 NULL, /* 41 */
222 223 "_CONFIG_MAXPID", /* 42 */
223 224 "_CONFIG_STACK_PROT", /* 43 */
224 225 "_CONFIG_NPROC_MAX", /* 44 */
225 226 "_CONFIG_CPUID_MAX", /* 45 */
226 227 "_CONFIG_SYMLOOP_MAX", /* 46 */
227 228 "_CONFIG_EPHID_MAX", /* 47 */
228 229 };
229 230
230 231 #define PATHCONFMIN _PC_LINK_MAX
231 232 #define PATHCONFMAX _PC_XATTR_EXISTS
232 233 const char *const PATHCONFname[] = {
233 234 "_PC_LINK_MAX", /* 1 */
234 235 "_PC_MAX_CANON", /* 2 */
235 236 "_PC_MAX_INPUT", /* 3 */
236 237 "_PC_NAME_MAX", /* 4 */
237 238 "_PC_PATH_MAX", /* 5 */
238 239 "_PC_PIPE_BUF", /* 6 */
239 240 "_PC_NO_TRUNC", /* 7 */
240 241 "_PC_VDISABLE", /* 8 */
241 242 "_PC_CHOWN_RESTRICTED", /* 9 */
242 243 "_PC_ASYNC_IO", /* 10 */
243 244 "_PC_PRIO_IO", /* 11 */
244 245 "_PC_SYNC_IO", /* 12 */
245 246 "_PC_ALLOC_SIZE_MIN", /* 13 */
246 247 "_PC_REC_INCR_XFER_SIZE", /* 14 */
247 248 "_PC_REC_MAX_XFER_SIZE", /* 15 */
248 249 "_PC_REC_MIN_XFER_SIZE", /* 16 */
249 250 "_PC_REC_XFER_ALIGN", /* 17 */
250 251 "_PC_SYMLINK_MAX", /* 18 */
251 252 "_PC_2_SYMLINKS", /* 19 */
252 253 "_PC_ACL_ENABLED", /* 20 */
253 254 "_PC_MIN_HOLE_SIZE", /* 21 */
254 255 "_PC_CASE_BEHAVIOR", /* 22 */
255 256 "_PC_SATTR_ENABLED", /* 23 */
256 257 "_PC_SATTR_EXISTS", /* 24 */
257 258 "_PC_ACCESS_FILTERING", /* 25 */
258 259 "_PC_TIMESTAMP_RESOLUTION", /* 26 */
259 260 NULL, /* 27 */
260 261 NULL, /* 28 */
261 262 NULL, /* 29 */
262 263 NULL, /* 30 */
263 264 NULL, /* 31 */
264 265 NULL, /* 32 */
265 266 NULL, /* 33 */
266 267 NULL, /* 34 */
267 268 NULL, /* 35 */
268 269 NULL, /* 36 */
269 270 NULL, /* 37 */
270 271 NULL, /* 38 */
271 272 NULL, /* 39 */
272 273 NULL, /* 40 */
273 274 NULL, /* 41 */
274 275 NULL, /* 42 */
275 276 NULL, /* 43 */
276 277 NULL, /* 44 */
277 278 NULL, /* 45 */
278 279 NULL, /* 46 */
279 280 NULL, /* 47 */
280 281 NULL, /* 48 */
281 282 NULL, /* 49 */
282 283 NULL, /* 50 */
283 284 NULL, /* 51 */
284 285 NULL, /* 52 */
285 286 NULL, /* 53 */
286 287 NULL, /* 54 */
287 288 NULL, /* 55 */
288 289 NULL, /* 56 */
289 290 NULL, /* 57 */
290 291 NULL, /* 58 */
291 292 NULL, /* 59 */
292 293 NULL, /* 60 */
293 294 NULL, /* 61 */
294 295 NULL, /* 62 */
295 296 NULL, /* 63 */
296 297 NULL, /* 64 */
297 298 NULL, /* 65 */
298 299 NULL, /* 66 */
299 300 "_PC_FILESIZEBITS", /* 67 */
300 301 NULL, /* 68 */
301 302 NULL, /* 69 */
302 303 NULL, /* 70 */
303 304 NULL, /* 71 */
304 305 NULL, /* 72 */
305 306 NULL, /* 73 */
306 307 NULL, /* 74 */
307 308 NULL, /* 75 */
308 309 NULL, /* 76 */
309 310 NULL, /* 77 */
310 311 NULL, /* 78 */
311 312 NULL, /* 79 */
312 313 NULL, /* 80 */
313 314 NULL, /* 81 */
314 315 NULL, /* 82 */
315 316 NULL, /* 83 */
316 317 NULL, /* 84 */
317 318 NULL, /* 85 */
318 319 NULL, /* 86 */
319 320 NULL, /* 87 */
320 321 NULL, /* 88 */
321 322 NULL, /* 89 */
322 323 NULL, /* 90 */
323 324 NULL, /* 91 */
324 325 NULL, /* 92 */
325 326 NULL, /* 93 */
326 327 NULL, /* 94 */
327 328 NULL, /* 95 */
328 329 NULL, /* 96 */
329 330 NULL, /* 97 */
330 331 NULL, /* 98 */
331 332 NULL, /* 99 */
332 333 "_PC_XATTR_ENABLED", /* 100 */
333 334 "_PC_XATTR_EXISTS", /* 101, _PC_LAST */
334 335 };
335 336
336 337 const struct ioc {
337 338 uint_t code;
338 339 const char *name;
339 340 const char *datastruct;
340 341 } ioc[] = {
341 342 { (uint_t)TCGETA, "TCGETA", NULL },
342 343 { (uint_t)TCSETA, "TCSETA", NULL },
343 344 { (uint_t)TCSETAW, "TCSETAW", NULL },
344 345 { (uint_t)TCSETAF, "TCSETAF", NULL },
345 346 { (uint_t)TCFLSH, "TCFLSH", NULL },
346 347 { (uint_t)TIOCKBON, "TIOCKBON", NULL },
347 348 { (uint_t)TIOCKBOF, "TIOCKBOF", NULL },
348 349 { (uint_t)KBENABLED, "KBENABLED", NULL },
349 350 { (uint_t)TCGETS, "TCGETS", NULL },
350 351 { (uint_t)TCSETS, "TCSETS", NULL },
351 352 { (uint_t)TCSETSW, "TCSETSW", NULL },
352 353 { (uint_t)TCSETSF, "TCSETSF", NULL },
353 354 { (uint_t)TCXONC, "TCXONC", NULL },
354 355 { (uint_t)TCSBRK, "TCSBRK", NULL },
355 356 { (uint_t)TCDSET, "TCDSET", NULL },
356 357 { (uint_t)RTS_TOG, "RTS_TOG", NULL },
357 358 { (uint_t)TIOCSWINSZ, "TIOCSWINSZ", NULL },
358 359 { (uint_t)TIOCGWINSZ, "TIOCGWINSZ", NULL },
359 360 { (uint_t)TIOCGETD, "TIOCGETD", NULL },
360 361 { (uint_t)TIOCSETD, "TIOCSETD", NULL },
361 362 { (uint_t)TIOCHPCL, "TIOCHPCL", NULL },
362 363 { (uint_t)TIOCGETP, "TIOCGETP", NULL },
363 364 { (uint_t)TIOCSETP, "TIOCSETP", NULL },
364 365 { (uint_t)TIOCSETN, "TIOCSETN", NULL },
365 366 { (uint_t)TIOCEXCL, "TIOCEXCL", NULL },
366 367 { (uint_t)TIOCNXCL, "TIOCNXCL", NULL },
367 368 { (uint_t)TIOCFLUSH, "TIOCFLUSH", NULL },
368 369 { (uint_t)TIOCSETC, "TIOCSETC", NULL },
369 370 { (uint_t)TIOCGETC, "TIOCGETC", NULL },
370 371 { (uint_t)TIOCGPGRP, "TIOCGPGRP", NULL },
371 372 { (uint_t)TIOCSPGRP, "TIOCSPGRP", NULL },
372 373 { (uint_t)TIOCGSID, "TIOCGSID", NULL },
373 374 { (uint_t)TIOCSTI, "TIOCSTI", NULL },
374 375 { (uint_t)TIOCMSET, "TIOCMSET", NULL },
375 376 { (uint_t)TIOCMBIS, "TIOCMBIS", NULL },
376 377 { (uint_t)TIOCMBIC, "TIOCMBIC", NULL },
377 378 { (uint_t)TIOCMGET, "TIOCMGET", NULL },
378 379 { (uint_t)TIOCREMOTE, "TIOCREMOTE", NULL },
379 380 { (uint_t)TIOCSIGNAL, "TIOCSIGNAL", NULL },
380 381 { (uint_t)TIOCSTART, "TIOCSTART", NULL },
381 382 { (uint_t)TIOCSTOP, "TIOCSTOP", NULL },
382 383 { (uint_t)TIOCNOTTY, "TIOCNOTTY", NULL },
383 384 { (uint_t)TIOCSCTTY, "TIOCSCTTY", NULL },
384 385 { (uint_t)TIOCOUTQ, "TIOCOUTQ", NULL },
385 386 { (uint_t)TIOCGLTC, "TIOCGLTC", NULL },
386 387 { (uint_t)TIOCSLTC, "TIOCSLTC", NULL },
387 388 { (uint_t)TIOCCDTR, "TIOCCDTR", NULL },
388 389 { (uint_t)TIOCSDTR, "TIOCSDTR", NULL },
389 390 { (uint_t)TIOCCBRK, "TIOCCBRK", NULL },
390 391 { (uint_t)TIOCSBRK, "TIOCSBRK", NULL },
391 392 { (uint_t)TIOCLGET, "TIOCLGET", NULL },
392 393 { (uint_t)TIOCLSET, "TIOCLSET", NULL },
393 394 { (uint_t)TIOCLBIC, "TIOCLBIC", NULL },
394 395 { (uint_t)TIOCLBIS, "TIOCLBIS", NULL },
395 396
396 397 { (uint_t)TIOCSILOOP, "TIOCSILOOP", NULL },
397 398 { (uint_t)TIOCCILOOP, "TIOCSILOOP", NULL },
398 399
399 400 { (uint_t)TIOCGPPS, "TIOCGPPS", NULL },
400 401 { (uint_t)TIOCSPPS, "TIOCSPPS", NULL },
401 402 { (uint_t)TIOCGPPSEV, "TIOCGPPSEV", NULL },
402 403
403 404 { (uint_t)TIOCPKT, "TIOCPKT", NULL }, /* ptyvar.h */
404 405 { (uint_t)TIOCUCNTL, "TIOCUCNTL", NULL },
405 406 { (uint_t)TIOCTCNTL, "TIOCTCNTL", NULL },
406 407 { (uint_t)TIOCISPACE, "TIOCISPACE", NULL },
407 408 { (uint_t)TIOCISIZE, "TIOCISIZE", NULL },
408 409 { (uint_t)TIOCSSIZE, "TIOCSSIZE", "ttysize" },
409 410 { (uint_t)TIOCGSIZE, "TIOCGSIZE", "ttysize" },
410 411
411 412 /*
412 413 * Unfortunately, the DLIOC and LDIOC codes overlap. Since the LDIOC
413 414 * ioctls (for xenix compatibility) are far less likely to be used, we
414 415 * give preference to DLIOC.
415 416 */
416 417 { (uint_t)DLIOCRAW, "DLIOCRAW", NULL },
417 418 { (uint_t)DLIOCNATIVE, "DLIOCNATIVE", NULL },
418 419 { (uint_t)DLIOCIPNETINFO, "DLIOCIPNETINFO", NULL},
419 420 { (uint_t)DLIOCLOWLINK, "DLIOCLOWLINK", NULL },
420 421
421 422 { (uint_t)LDOPEN, "LDOPEN", NULL },
422 423 { (uint_t)LDCLOSE, "LDCLOSE", NULL },
423 424 { (uint_t)LDCHG, "LDCHG", NULL },
424 425 { (uint_t)LDGETT, "LDGETT", NULL },
425 426 { (uint_t)LDSETT, "LDSETT", NULL },
426 427 { (uint_t)LDSMAP, "LDSMAP", NULL },
427 428 { (uint_t)LDGMAP, "LDGMAP", NULL },
428 429 { (uint_t)LDNMAP, "LDNMAP", NULL },
429 430 { (uint_t)TCGETX, "TCGETX", NULL },
430 431 { (uint_t)TCSETX, "TCSETX", NULL },
431 432 { (uint_t)TCSETXW, "TCSETXW", NULL },
432 433 { (uint_t)TCSETXF, "TCSETXF", NULL },
433 434 { (uint_t)FIORDCHK, "FIORDCHK", NULL },
434 435 { (uint_t)FIOCLEX, "FIOCLEX", NULL },
435 436 { (uint_t)FIONCLEX, "FIONCLEX", NULL },
436 437 { (uint_t)FIONREAD, "FIONREAD", NULL },
437 438 { (uint_t)FIONBIO, "FIONBIO", NULL },
438 439 { (uint_t)FIOASYNC, "FIOASYNC", NULL },
439 440 { (uint_t)FIOSETOWN, "FIOSETOWN", NULL },
440 441 { (uint_t)FIOGETOWN, "FIOGETOWN", NULL },
441 442 #ifdef DIOCGETP
442 443 { (uint_t)DIOCGETP, "DIOCGETP", NULL },
443 444 { (uint_t)DIOCSETP, "DIOCSETP", NULL },
444 445 #endif
445 446 #ifdef DIOCGETC
446 447 { (uint_t)DIOCGETC, "DIOCGETC", NULL },
447 448 { (uint_t)DIOCGETB, "DIOCGETB", NULL },
448 449 { (uint_t)DIOCSETE, "DIOCSETE", NULL },
449 450 #endif
450 451 #ifdef IFFORMAT
451 452 { (uint_t)IFFORMAT, "IFFORMAT", NULL },
452 453 { (uint_t)IFBCHECK, "IFBCHECK", NULL },
453 454 { (uint_t)IFCONFIRM, "IFCONFIRM", NULL },
454 455 #endif
455 456 #ifdef LIOCGETP
456 457 { (uint_t)LIOCGETP, "LIOCGETP", NULL },
457 458 { (uint_t)LIOCSETP, "LIOCSETP", NULL },
458 459 { (uint_t)LIOCGETS, "LIOCGETS", NULL },
459 460 { (uint_t)LIOCSETS, "LIOCSETS", NULL },
460 461 #endif
461 462 #ifdef JBOOT
462 463 { (uint_t)JBOOT, "JBOOT", NULL },
463 464 { (uint_t)JTERM, "JTERM", NULL },
464 465 { (uint_t)JMPX, "JMPX", NULL },
465 466 #ifdef JTIMO
466 467 { (uint_t)JTIMO, "JTIMO", NULL },
467 468 #endif
468 469 { (uint_t)JWINSIZE, "JWINSIZE", NULL },
469 470 { (uint_t)JTIMOM, "JTIMOM", NULL },
470 471 { (uint_t)JZOMBOOT, "JZOMBOOT", NULL },
471 472 { (uint_t)JAGENT, "JAGENT", NULL },
472 473 { (uint_t)JTRUN, "JTRUN", NULL },
473 474 { (uint_t)JXTPROTO, "JXTPROTO", NULL },
474 475 #endif
475 476 { (uint_t)KSTAT_IOC_CHAIN_ID, "KSTAT_IOC_CHAIN_ID", NULL },
476 477 { (uint_t)KSTAT_IOC_READ, "KSTAT_IOC_READ", NULL },
477 478 { (uint_t)KSTAT_IOC_WRITE, "KSTAT_IOC_WRITE", NULL },
478 479 { (uint_t)STGET, "STGET", NULL },
479 480 { (uint_t)STSET, "STSET", NULL },
480 481 { (uint_t)STTHROW, "STTHROW", NULL },
481 482 { (uint_t)STWLINE, "STWLINE", NULL },
482 483 { (uint_t)STTSV, "STTSV", NULL },
483 484 { (uint_t)I_NREAD, "I_NREAD", NULL },
484 485 { (uint_t)I_PUSH, "I_PUSH", NULL },
485 486 { (uint_t)I_POP, "I_POP", NULL },
486 487 { (uint_t)I_LOOK, "I_LOOK", NULL },
487 488 { (uint_t)I_FLUSH, "I_FLUSH", NULL },
488 489 { (uint_t)I_SRDOPT, "I_SRDOPT", NULL },
489 490 { (uint_t)I_GRDOPT, "I_GRDOPT", NULL },
490 491 { (uint_t)I_STR, "I_STR", NULL },
491 492 { (uint_t)I_SETSIG, "I_SETSIG", NULL },
492 493 { (uint_t)I_GETSIG, "I_GETSIG", NULL },
493 494 { (uint_t)I_FIND, "I_FIND", NULL },
494 495 { (uint_t)I_LINK, "I_LINK", NULL },
495 496 { (uint_t)I_UNLINK, "I_UNLINK", NULL },
496 497 { (uint_t)I_PEEK, "I_PEEK", NULL },
497 498 { (uint_t)I_FDINSERT, "I_FDINSERT", NULL },
498 499 { (uint_t)I_SENDFD, "I_SENDFD", NULL },
499 500 { (uint_t)I_RECVFD, "I_RECVFD", NULL },
500 501 { (uint_t)I_SWROPT, "I_SWROPT", NULL },
501 502 { (uint_t)I_GWROPT, "I_GWROPT", NULL },
502 503 { (uint_t)I_LIST, "I_LIST", NULL },
503 504 { (uint_t)I_PLINK, "I_PLINK", NULL },
504 505 { (uint_t)I_PUNLINK, "I_PUNLINK", NULL },
505 506 { (uint_t)I_FLUSHBAND, "I_FLUSHBAND", NULL },
506 507 { (uint_t)I_CKBAND, "I_CKBAND", NULL },
507 508 { (uint_t)I_GETBAND, "I_GETBAND", NULL },
508 509 { (uint_t)I_ATMARK, "I_ATMARK", NULL },
509 510 { (uint_t)I_SETCLTIME, "I_SETCLTIME", NULL },
510 511 { (uint_t)I_GETCLTIME, "I_GETCLTIME", NULL },
511 512 { (uint_t)I_CANPUT, "I_CANPUT", NULL },
512 513 { (uint_t)I_ANCHOR, "I_ANCHOR", NULL },
513 514 { (uint_t)_I_CMD, "_I_CMD", NULL },
514 515 #ifdef TI_GETINFO
515 516 { (uint_t)TI_GETINFO, "TI_GETINFO", NULL },
516 517 { (uint_t)TI_OPTMGMT, "TI_OPTMGMT", NULL },
517 518 { (uint_t)TI_BIND, "TI_BIND", NULL },
518 519 { (uint_t)TI_UNBIND, "TI_UNBIND", NULL },
519 520 #endif
520 521 #ifdef TI_CAPABILITY
521 522 { (uint_t)TI_CAPABILITY, "TI_CAPABILITY", NULL },
522 523 #endif
523 524 #ifdef TI_GETMYNAME
524 525 { (uint_t)TI_GETMYNAME, "TI_GETMYNAME", NULL },
525 526 { (uint_t)TI_GETPEERNAME, "TI_GETPEERNAME", NULL },
526 527 { (uint_t)TI_SETMYNAME, "TI_SETMYNAME", NULL },
527 528 { (uint_t)TI_SETPEERNAME, "TI_SETPEERNAME", NULL },
528 529 #endif
529 530 #ifdef V_PREAD
530 531 { (uint_t)V_PREAD, "V_PREAD", NULL },
531 532 { (uint_t)V_PWRITE, "V_PWRITE", NULL },
532 533 { (uint_t)V_PDREAD, "V_PDREAD", NULL },
533 534 { (uint_t)V_PDWRITE, "V_PDWRITE", NULL },
534 535 #if !defined(__i386) && !defined(__amd64)
535 536 { (uint_t)V_GETSSZ, "V_GETSSZ", NULL },
536 537 #endif /* !__i386 */
537 538 #endif
538 539 /* audio */
539 540 { (uint_t)AUDIO_GETINFO, "AUDIO_GETINFO", NULL },
540 541 { (uint_t)AUDIO_SETINFO, "AUDIO_SETINFO", NULL },
541 542 { (uint_t)AUDIO_DRAIN, "AUDIO_DRAIN", NULL },
542 543 { (uint_t)AUDIO_GETDEV, "AUDIO_GETDEV", NULL },
543 544 { (uint_t)AUDIO_DIAG_LOOPBACK, "AUDIO_DIAG_LOOPBACK", NULL },
544 545 { (uint_t)AUDIO_GET_CH_NUMBER, "AUDIO_GET_CH_NUMBER", NULL },
545 546 { (uint_t)AUDIO_GET_CH_TYPE, "AUDIO_GET_CH_TYPE", NULL },
546 547 { (uint_t)AUDIO_GET_NUM_CHS, "AUDIO_GET_NUM_CHS", NULL },
547 548 { (uint_t)AUDIO_GET_AD_DEV, "AUDIO_GET_AD_DEV", NULL },
548 549 { (uint_t)AUDIO_GET_APM_DEV, "AUDIO_GET_APM_DEV", NULL },
549 550 { (uint_t)AUDIO_GET_AS_DEV, "AUDIO_GET_AS_DEV", NULL },
550 551 { (uint_t)AUDIO_MIXER_MULTIPLE_OPEN, "AUDIO_MIXER_MULTIPLE_OPEN",
551 552 NULL },
552 553 { (uint_t)AUDIO_MIXER_SINGLE_OPEN, "AUDIO_MIXER_SINGLE_OPEN",
553 554 NULL },
554 555 { (uint_t)AUDIO_MIXER_GET_SAMPLE_RATES, "AUDIO_MIXER_GET_SAMPLE_RATES",
555 556 NULL },
556 557 { (uint_t)AUDIO_MIXERCTL_GETINFO, "AUDIO_MIXERCTL_GETINFO",
557 558 NULL },
558 559 { (uint_t)AUDIO_MIXERCTL_SETINFO, "AUDIO_MIXERCTL_SETINFO",
559 560 NULL },
560 561 { (uint_t)AUDIO_MIXERCTL_GET_CHINFO, "AUDIO_MIXERCTL_GET_CHINFO",
561 562 NULL },
562 563 { (uint_t)AUDIO_MIXERCTL_SET_CHINFO, "AUDIO_MIXERCTL_SET_CHINFO",
563 564 NULL },
564 565 { (uint_t)AUDIO_MIXERCTL_GET_MODE, "AUDIO_MIXERCTL_GET_MODE",
565 566 NULL },
566 567 { (uint_t)AUDIO_MIXERCTL_SET_MODE, "AUDIO_MIXERCTL_SET_MODE",
567 568 NULL },
568 569 /* new style Boomer (OSS) ioctls */
569 570 { (uint_t)SNDCTL_SYSINFO, "SNDCTL_SYSINFO", NULL },
570 571 { (uint_t)SNDCTL_AUDIOINFO, "SNDCTL_AUDIOINFO", NULL },
571 572 { (uint_t)SNDCTL_AUDIOINFO_EX, "SNDCTL_AUDIOINFO_EX", NULL },
572 573 { (uint_t)SNDCTL_MIXERINFO, "SNDCTL_MIXERINFO", NULL },
573 574 { (uint_t)SNDCTL_CARDINFO, "SNDCTL_CARDINFO", NULL },
574 575 { (uint_t)SNDCTL_ENGINEINFO, "SNDCTL_ENGINEINFO", NULL },
575 576 { (uint_t)SNDCTL_MIX_NRMIX, "SNDCTL_MIX_NRMIX", NULL },
576 577 { (uint_t)SNDCTL_MIX_NREXT, "SNDCTL_MIX_NREXT", NULL },
577 578 { (uint_t)SNDCTL_MIX_EXTINFO, "SNDCTL_MIX_EXTINFO", NULL },
578 579 { (uint_t)SNDCTL_MIX_READ, "SNDCTL_MIX_READ", NULL },
579 580 { (uint_t)SNDCTL_MIX_WRITE, "SNDCTL_MIX_WRITE", NULL },
580 581 { (uint_t)SNDCTL_MIX_ENUMINFO, "SNDCTL_MIX_ENUMINFO", NULL },
581 582 { (uint_t)SNDCTL_MIX_DESCRIPTION, "SNDCTL_MIX_DESCRIPTION",
582 583 NULL },
583 584 { (uint_t)SNDCTL_SETSONG, "SNDCTL_SETSONG", NULL },
584 585 { (uint_t)SNDCTL_GETSONG, "SNDCTL_GETSONG", NULL },
585 586 { (uint_t)SNDCTL_SETNAME, "SNDCTL_SETNAME", NULL },
586 587 { (uint_t)SNDCTL_SETLABEL, "SNDCTL_SETLABEL", NULL },
587 588 { (uint_t)SNDCTL_GETLABEL, "SNDCTL_GETLABEL", NULL },
588 589 { (uint_t)SNDCTL_DSP_HALT, "SNDCTL_DSP_HALT", NULL },
589 590 { (uint_t)SNDCTL_DSP_RESET, "SNDCTL_DSP_RESET", NULL },
590 591 { (uint_t)SNDCTL_DSP_SYNC, "SNDCTL_DSP_SYNC", NULL },
591 592 { (uint_t)SNDCTL_DSP_SPEED, "SNDCTL_DSP_SPEED", NULL },
592 593 { (uint_t)SNDCTL_DSP_STEREO, "SNDCTL_DSP_STEREO", NULL },
593 594 { (uint_t)SNDCTL_DSP_GETBLKSIZE, "SNDCTL_DSP_GETBLKSIZE",
594 595 NULL },
595 596 { (uint_t)SNDCTL_DSP_SAMPLESIZE, "SNDCTL_DSP_SAMPLESIZE",
596 597 NULL },
597 598 { (uint_t)SNDCTL_DSP_CHANNELS, "SNDCTL_DSP_CHANNELS", NULL },
598 599 { (uint_t)SNDCTL_DSP_POST, "SNDCTL_DSP_POST", NULL },
599 600 { (uint_t)SNDCTL_DSP_SUBDIVIDE, "SNDCTL_DSP_SUBDIVIDE", NULL },
600 601 { (uint_t)SNDCTL_DSP_SETFRAGMENT, "SNDCTL_DSP_SETFRAGMENT",
601 602 NULL },
602 603 { (uint_t)SNDCTL_DSP_GETFMTS, "SNDCTL_DSP_GETFMTS", NULL },
603 604 { (uint_t)SNDCTL_DSP_SETFMT, "SNDCTL_DSP_SETFMT", NULL },
604 605 { (uint_t)SNDCTL_DSP_GETOSPACE, "SNDCTL_DSP_GETOSPACE", NULL },
605 606 { (uint_t)SNDCTL_DSP_GETISPACE, "SNDCTL_DSP_GETISPACE", NULL },
606 607 { (uint_t)SNDCTL_DSP_GETCAPS, "SNDCTL_DSP_CAPS", NULL },
607 608 { (uint_t)SNDCTL_DSP_GETTRIGGER, "SNDCTL_DSP_GETTRIGGER",
608 609 NULL },
609 610 { (uint_t)SNDCTL_DSP_SETTRIGGER, "SNDCTL_DSP_SETTRIGGER",
610 611 NULL },
611 612 { (uint_t)SNDCTL_DSP_GETIPTR, "SNDCTL_DSP_GETIPTR", NULL },
612 613 { (uint_t)SNDCTL_DSP_GETOPTR, "SNDCTL_DSP_GETOPTR", NULL },
613 614 { (uint_t)SNDCTL_DSP_SETSYNCRO, "SNDCTL_DSP_SETSYNCRO", NULL },
614 615 { (uint_t)SNDCTL_DSP_SETDUPLEX, "SNDCTL_DSP_SETDUPLEX", NULL },
615 616 { (uint_t)SNDCTL_DSP_PROFILE, "SNDCTL_DSP_PROFILE", NULL },
616 617 { (uint_t)SNDCTL_DSP_GETODELAY, "SNDCTL_DSP_GETODELAY", NULL },
617 618 { (uint_t)SNDCTL_DSP_GETPLAYVOL, "SNDCTL_DSP_GETPLAYVOL",
618 619 NULL },
619 620 { (uint_t)SNDCTL_DSP_SETPLAYVOL, "SNDCTL_DSP_SETPLAYVOL",
620 621 NULL },
621 622 { (uint_t)SNDCTL_DSP_GETERROR, "SNDCTL_DSP_GETERROR", NULL },
622 623 { (uint_t)SNDCTL_DSP_READCTL, "SNDCTL_DSP_READCTL", NULL },
623 624 { (uint_t)SNDCTL_DSP_WRITECTL, "SNDCTL_DSP_WRITECTL", NULL },
624 625 { (uint_t)SNDCTL_DSP_SYNCGROUP, "SNDCTL_DSP_SYNCGROUP", NULL },
625 626 { (uint_t)SNDCTL_DSP_SYNCSTART, "SNDCTL_DSP_SYNCSTART", NULL },
626 627 { (uint_t)SNDCTL_DSP_COOKEDMODE, "SNDCTL_DSP_COOKEDMODE",
627 628 NULL },
628 629 { (uint_t)SNDCTL_DSP_SILENCE, "SNDCTL_DSP_SILENCE", NULL },
629 630 { (uint_t)SNDCTL_DSP_SKIP, "SNDCTL_DSP_SKIP", NULL },
630 631 { (uint_t)SNDCTL_DSP_HALT_INPUT, "SNDCTL_DSP_HALT_INPUT",
631 632 NULL },
632 633 { (uint_t)SNDCTL_DSP_HALT_OUTPUT, "SNDCTL_DSP_HALT_OUTPUT",
633 634 NULL },
634 635 { (uint_t)SNDCTL_DSP_LOW_WATER, "SNDCTL_DSP_LOW_WATER", NULL },
635 636 { (uint_t)SNDCTL_DSP_CURRENT_OPTR, "SNDCTL_DSP_CURRENT_OPTR",
636 637 NULL },
637 638 { (uint_t)SNDCTL_DSP_CURRENT_IPTR, "SNDCTL_DSP_CURRENT_IPTR",
638 639 NULL },
639 640 { (uint_t)SNDCTL_DSP_GET_RECSRC_NAMES, "SNDCTL_DSP_GET_RECSRC_NAMES",
640 641 NULL },
641 642 { (uint_t)SNDCTL_DSP_GET_RECSRC, "SNDCTL_DSP_GET_RECSRC",
642 643 NULL },
643 644 { (uint_t)SNDCTL_DSP_SET_RECSRC, "SNDCTL_DSP_SET_RECSRC",
644 645 NULL },
645 646 { (uint_t)SNDCTL_DSP_GET_PLAYTGT_NAMES, "SNDCTL_DSP_GET_PLAYTGT_NAMES",
646 647 NULL },
647 648 { (uint_t)SNDCTL_DSP_GET_PLAYTGT, "SNDCTL_DSP_GET_PLAYTGT",
648 649 NULL },
649 650 { (uint_t)SNDCTL_DSP_SET_PLAYTGT, "SNDCTL_DSP_SET_PLAYTGT",
650 651 NULL },
651 652 { (uint_t)SNDCTL_DSP_GETRECVOL, "SNDCTL_DSP_GETRECVOL",
652 653 NULL },
653 654 { (uint_t)SNDCTL_DSP_SETRECVOL, "SNDCTL_DSP_SETRECVOL",
654 655 NULL },
655 656 { (uint_t)SNDCTL_DSP_GET_CHNORDER, "SNDCTL_DSP_GET_CHNORDER",
656 657 NULL },
657 658 { (uint_t)SNDCTL_DSP_SET_CHNORDER, "SNDCTL_DSP_SET_CHNORDER",
658 659 NULL },
659 660 { (uint_t)SNDCTL_DSP_GETIPEAKS, "SNDCTL_DSP_GETIPEAKS", NULL },
660 661 { (uint_t)SNDCTL_DSP_GETOPEAKS, "SNDCTL_DSP_GETOPEAKS", NULL },
661 662 { (uint_t)SNDCTL_DSP_POLICY, "SNDCTL_DSP_POLICY", NULL },
662 663 { (uint_t)SNDCTL_DSP_GETCHANNELMASK, "SNDCTL_DSP_GETCHANNELMASK",
663 664 NULL },
664 665 { (uint_t)SNDCTL_DSP_BIND_CHANNEL, "SNDCTL_DSP_BIND_CHANNEL",
665 666 NULL },
666 667 { (uint_t)SOUND_MIXER_READ_VOLUME, "SOUND_MIXER_READ_VOLUME",
667 668 NULL },
668 669 { (uint_t)SOUND_MIXER_READ_OGAIN, "SOUND_MIXER_READ_OGAIN",
669 670 NULL },
670 671 { (uint_t)SOUND_MIXER_READ_PCM, "SOUND_MIXER_READ_PCM", NULL },
671 672 { (uint_t)SOUND_MIXER_READ_IGAIN, "SOUND_MIXER_READ_IGAIN",
672 673 NULL },
673 674 { (uint_t)SOUND_MIXER_READ_RECLEV, "SOUND_MIXER_READ_RECLEV",
674 675 NULL },
675 676 { (uint_t)SOUND_MIXER_READ_RECSRC, "SOUND_MIXER_READ_RECSRC",
676 677 NULL },
677 678 { (uint_t)SOUND_MIXER_READ_DEVMASK, "SOUND_MIXER_READ_DEVMASK",
678 679 NULL },
679 680 { (uint_t)SOUND_MIXER_READ_RECMASK, "SOUND_MIXER_READ_RECMASK",
680 681 NULL },
681 682 { (uint_t)SOUND_MIXER_READ_CAPS, "SOUND_MIXER_READ_CAPS",
682 683 NULL },
683 684 { (uint_t)SOUND_MIXER_READ_STEREODEVS, "SOUND_MIXER_READ_STEREODEVS",
684 685 NULL },
685 686 { (uint_t)SOUND_MIXER_READ_RECGAIN, "SOUND_MIXER_READ_RECGAIN",
686 687 NULL },
687 688 { (uint_t)SOUND_MIXER_READ_MONGAIN, "SOUND_MIXER_READ_MONGAIN",
688 689 NULL },
689 690 { (uint_t)SOUND_MIXER_WRITE_VOLUME, "SOUND_MIXER_WRITE_VOLUME",
690 691 NULL },
691 692 { (uint_t)SOUND_MIXER_WRITE_OGAIN, "SOUND_MIXER_WRITE_OGAIN",
692 693 NULL },
693 694 { (uint_t)SOUND_MIXER_WRITE_PCM, "SOUND_MIXER_WRITE_PCM",
694 695 NULL },
695 696 { (uint_t)SOUND_MIXER_WRITE_IGAIN, "SOUND_MIXER_WRITE_IGAIN",
696 697 NULL },
697 698 { (uint_t)SOUND_MIXER_WRITE_RECLEV, "SOUND_MIXER_WRITE_RECLEV",
698 699 NULL },
699 700 { (uint_t)SOUND_MIXER_WRITE_RECSRC, "SOUND_MIXER_WRITE_RECSRC",
700 701 NULL },
701 702 { (uint_t)SOUND_MIXER_WRITE_RECGAIN, "SOUND_MIXER_WRITE_RECGAIN",
702 703 NULL },
703 704 { (uint_t)SOUND_MIXER_WRITE_MONGAIN, "SOUND_MIXER_WRITE_MONGAIN",
704 705 NULL },
705 706
706 707 /* STREAMS redirection ioctls */
707 708 { (uint_t)SRIOCSREDIR, "SRIOCSREDIR", NULL },
708 709 { (uint_t)SRIOCISREDIR, "SRIOCISREDIR", NULL },
709 710 { (uint_t)CPCIO_BIND, "CPCIO_BIND", NULL },
710 711 { (uint_t)CPCIO_SAMPLE, "CPCIO_SAMPLE", NULL },
711 712 { (uint_t)CPCIO_RELE, "CPCIO_RELE", NULL },
712 713 /* /dev/poll ioctl() control codes */
713 714 { (uint_t)DP_POLL, "DP_POLL", NULL },
714 715 { (uint_t)DP_ISPOLLED, "DP_ISPOLLED", NULL },
715 716 { (uint_t)DP_PPOLL, "DP_PPOLL", NULL },
716 717 { (uint_t)DP_EPOLLCOMPAT, "DP_EPOLLCOMPAT", NULL },
717 718 /* the old /proc ioctl() control codes */
718 719 #define PIOC ('q'<<8)
719 720 { (uint_t)(PIOC|1), "PIOCSTATUS", NULL },
720 721 { (uint_t)(PIOC|2), "PIOCSTOP", NULL },
721 722 { (uint_t)(PIOC|3), "PIOCWSTOP", NULL },
722 723 { (uint_t)(PIOC|4), "PIOCRUN", NULL },
723 724 { (uint_t)(PIOC|5), "PIOCGTRACE", NULL },
724 725 { (uint_t)(PIOC|6), "PIOCSTRACE", NULL },
725 726 { (uint_t)(PIOC|7), "PIOCSSIG", NULL },
726 727 { (uint_t)(PIOC|8), "PIOCKILL", NULL },
727 728 { (uint_t)(PIOC|9), "PIOCUNKILL", NULL },
728 729 { (uint_t)(PIOC|10), "PIOCGHOLD", NULL },
729 730 { (uint_t)(PIOC|11), "PIOCSHOLD", NULL },
730 731 { (uint_t)(PIOC|12), "PIOCMAXSIG", NULL },
731 732 { (uint_t)(PIOC|13), "PIOCACTION", NULL },
732 733 { (uint_t)(PIOC|14), "PIOCGFAULT", NULL },
733 734 { (uint_t)(PIOC|15), "PIOCSFAULT", NULL },
734 735 { (uint_t)(PIOC|16), "PIOCCFAULT", NULL },
735 736 { (uint_t)(PIOC|17), "PIOCGENTRY", NULL },
736 737 { (uint_t)(PIOC|18), "PIOCSENTRY", NULL },
737 738 { (uint_t)(PIOC|19), "PIOCGEXIT", NULL },
738 739 { (uint_t)(PIOC|20), "PIOCSEXIT", NULL },
739 740 { (uint_t)(PIOC|21), "PIOCSFORK", NULL },
740 741 { (uint_t)(PIOC|22), "PIOCRFORK", NULL },
741 742 { (uint_t)(PIOC|23), "PIOCSRLC", NULL },
742 743 { (uint_t)(PIOC|24), "PIOCRRLC", NULL },
743 744 { (uint_t)(PIOC|25), "PIOCGREG", NULL },
744 745 { (uint_t)(PIOC|26), "PIOCSREG", NULL },
745 746 { (uint_t)(PIOC|27), "PIOCGFPREG", NULL },
746 747 { (uint_t)(PIOC|28), "PIOCSFPREG", NULL },
747 748 { (uint_t)(PIOC|29), "PIOCNICE", NULL },
748 749 { (uint_t)(PIOC|30), "PIOCPSINFO", NULL },
749 750 { (uint_t)(PIOC|31), "PIOCNMAP", NULL },
750 751 { (uint_t)(PIOC|32), "PIOCMAP", NULL },
751 752 { (uint_t)(PIOC|33), "PIOCOPENM", NULL },
752 753 { (uint_t)(PIOC|34), "PIOCCRED", NULL },
753 754 { (uint_t)(PIOC|35), "PIOCGROUPS", NULL },
754 755 { (uint_t)(PIOC|36), "PIOCGETPR", NULL },
755 756 { (uint_t)(PIOC|37), "PIOCGETU", NULL },
756 757 { (uint_t)(PIOC|38), "PIOCSET", NULL },
757 758 { (uint_t)(PIOC|39), "PIOCRESET", NULL },
758 759 { (uint_t)(PIOC|43), "PIOCUSAGE", NULL },
759 760 { (uint_t)(PIOC|44), "PIOCOPENPD", NULL },
760 761 { (uint_t)(PIOC|45), "PIOCLWPIDS", NULL },
761 762 { (uint_t)(PIOC|46), "PIOCOPENLWP", NULL },
762 763 { (uint_t)(PIOC|47), "PIOCLSTATUS", NULL },
763 764 { (uint_t)(PIOC|48), "PIOCLUSAGE", NULL },
764 765 { (uint_t)(PIOC|49), "PIOCNAUXV", NULL },
765 766 { (uint_t)(PIOC|50), "PIOCAUXV", NULL },
766 767 { (uint_t)(PIOC|51), "PIOCGXREGSIZE", NULL },
767 768 { (uint_t)(PIOC|52), "PIOCGXREG", NULL },
768 769 { (uint_t)(PIOC|53), "PIOCSXREG", NULL },
769 770 { (uint_t)(PIOC|101), "PIOCGWIN", NULL },
770 771 { (uint_t)(PIOC|103), "PIOCNLDT", NULL },
771 772 { (uint_t)(PIOC|104), "PIOCLDT", NULL },
772 773
773 774 /* ioctl's applicable on sockets */
774 775 { (uint_t)SIOCSHIWAT, "SIOCSHIWAT", NULL },
775 776 { (uint_t)SIOCGHIWAT, "SIOCGHIWAT", NULL },
776 777 { (uint_t)SIOCSLOWAT, "SIOCSLOWAT", NULL },
777 778 { (uint_t)SIOCGLOWAT, "SIOCGLOWAT", NULL },
778 779 { (uint_t)SIOCATMARK, "SIOCATMARK", NULL },
779 780 { (uint_t)SIOCSPGRP, "SIOCSPGRP", NULL },
780 781 { (uint_t)SIOCGPGRP, "SIOCGPGRP", NULL },
781 782 { (uint_t)SIOCADDRT, "SIOCADDRT", "rtentry" },
782 783 { (uint_t)SIOCDELRT, "SIOCDELRT", "rtentry" },
783 784 { (uint_t)SIOCGETVIFCNT, "SIOCGETVIFCNT", "sioc_vif_req" },
784 785 { (uint_t)SIOCGETSGCNT, "SIOCGETSGCNT", "sioc_sg_req" },
785 786 { (uint_t)SIOCGETLSGCNT, "SIOCGETLSGCNT", "sioc_lsg_req" },
786 787 { (uint_t)SIOCSIFADDR, "SIOCSIFADDR", "ifreq" },
787 788 { (uint_t)SIOCGIFADDR, "SIOCGIFADDR", "ifreq" },
788 789 { (uint_t)SIOCSIFDSTADDR, "SIOCSIFDSTADDR", "ifreq" },
789 790 { (uint_t)SIOCGIFDSTADDR, "SIOCGIFDSTADDR", "ifreq" },
790 791 { (uint_t)SIOCSIFFLAGS, "SIOCSIFFLAGS", "ifreq" },
791 792 { (uint_t)SIOCGIFFLAGS, "SIOCGIFFLAGS", "ifreq" },
792 793 { (uint_t)SIOCSIFMEM, "SIOCSIFMEM", "ifreq" },
793 794 { (uint_t)SIOCGIFMEM, "SIOCGIFMEM", "ifreq" },
794 795 { (uint_t)SIOCGIFCONF, "SIOCGIFCONF", "ifconf" },
795 796 { (uint_t)SIOCSIFMTU, "SIOCSIFMTU", "ifreq" },
796 797 { (uint_t)SIOCGIFMTU, "SIOCGIFMTU", "ifreq" },
797 798 { (uint_t)SIOCGIFBRDADDR, "SIOCGIFBRDADDR", "ifreq" },
798 799 { (uint_t)SIOCSIFBRDADDR, "SIOCSIFBRDADDR", "ifreq" },
799 800 { (uint_t)SIOCGIFNETMASK, "SIOCGIFNETMASK", "ifreq" },
800 801 { (uint_t)SIOCSIFNETMASK, "SIOCSIFNETMASK", "ifreq" },
801 802 { (uint_t)SIOCGIFMETRIC, "SIOCGIFMETRIC", "ifreq" },
802 803 { (uint_t)SIOCSIFMETRIC, "SIOCSIFMETRIC", "ifreq" },
803 804 { (uint_t)SIOCSARP, "SIOCSARP", "arpreq" },
804 805 { (uint_t)SIOCGARP, "SIOCGARP", "arpreq" },
805 806 { (uint_t)SIOCDARP, "SIOCDARP", "arpreq" },
806 807 { (uint_t)SIOCUPPER, "SIOCUPPER", "ifreq" },
807 808 { (uint_t)SIOCLOWER, "SIOCLOWER", "ifreq" },
808 809 { (uint_t)SIOCSETSYNC, "SIOCSETSYNC", "ifreq" },
809 810 { (uint_t)SIOCGETSYNC, "SIOCGETSYNC", "ifreq" },
810 811 { (uint_t)SIOCSSDSTATS, "SIOCSSDSTATS", "ifreq" },
811 812 { (uint_t)SIOCSSESTATS, "SIOCSSESTATS", "ifreq" },
812 813 { (uint_t)SIOCSPROMISC, "SIOCSPROMISC", NULL },
813 814 { (uint_t)SIOCADDMULTI, "SIOCADDMULTI", "ifreq" },
814 815 { (uint_t)SIOCDELMULTI, "SIOCDELMULTI", "ifreq" },
815 816 { (uint_t)SIOCGETNAME, "SIOCGETNAME", "sockaddr" },
816 817 { (uint_t)SIOCGETPEER, "SIOCGETPEER", "sockaddr" },
817 818 { (uint_t)IF_UNITSEL, "IF_UNITSEL", NULL },
818 819 { (uint_t)SIOCXPROTO, "SIOCXPROTO", NULL },
819 820 { (uint_t)SIOCIFDETACH, "SIOCIFDETACH", "ifreq" },
820 821 { (uint_t)SIOCGENPSTATS, "SIOCGENPSTATS", "ifreq" },
821 822 { (uint_t)SIOCX25XMT, "SIOCX25XMT", "ifreq" },
822 823 { (uint_t)SIOCX25RCV, "SIOCX25RCV", "ifreq" },
823 824 { (uint_t)SIOCX25TBL, "SIOCX25TBL", "ifreq" },
824 825 { (uint_t)SIOCSLGETREQ, "SIOCSLGETREQ", "ifreq" },
825 826 { (uint_t)SIOCSLSTAT, "SIOCSLSTAT", "ifreq" },
826 827 { (uint_t)SIOCSIFNAME, "SIOCSIFNAME", "ifreq" },
827 828 { (uint_t)SIOCGENADDR, "SIOCGENADDR", "ifreq" },
828 829 { (uint_t)SIOCGIFNUM, "SIOCGIFNUM", NULL },
829 830 { (uint_t)SIOCGIFMUXID, "SIOCGIFMUXID", "ifreq" },
830 831 { (uint_t)SIOCSIFMUXID, "SIOCSIFMUXID", "ifreq" },
831 832 { (uint_t)SIOCGIFINDEX, "SIOCGIFINDEX", "ifreq" },
832 833 { (uint_t)SIOCSIFINDEX, "SIOCSIFINDEX", "ifreq" },
833 834 { (uint_t)SIOCLIFREMOVEIF, "SIOCLIFREMOVEIF", "lifreq" },
834 835 { (uint_t)SIOCLIFADDIF, "SIOCLIFADDIF", "lifreq" },
835 836 { (uint_t)SIOCSLIFADDR, "SIOCSLIFADDR", "lifreq" },
836 837 { (uint_t)SIOCGLIFADDR, "SIOCGLIFADDR", "lifreq" },
837 838 { (uint_t)SIOCSLIFDSTADDR, "SIOCSLIFDSTADDR", "lifreq" },
838 839 { (uint_t)SIOCGLIFDSTADDR, "SIOCGLIFDSTADDR", "lifreq" },
839 840 { (uint_t)SIOCSLIFFLAGS, "SIOCSLIFFLAGS", "lifreq" },
840 841 { (uint_t)SIOCGLIFFLAGS, "SIOCGLIFFLAGS", "lifreq" },
841 842 { (uint_t)SIOCGLIFCONF, "SIOCGLIFCONF", "lifconf" },
842 843 { (uint_t)SIOCSLIFMTU, "SIOCSLIFMTU", "lifreq" },
843 844 { (uint_t)SIOCGLIFMTU, "SIOCGLIFMTU", "lifreq" },
844 845 { (uint_t)SIOCGLIFBRDADDR, "SIOCGLIFBRDADDR", "lifreq" },
845 846 { (uint_t)SIOCSLIFBRDADDR, "SIOCSLIFBRDADDR", "lifreq" },
846 847 { (uint_t)SIOCGLIFNETMASK, "SIOCGLIFNETMASK", "lifreq" },
847 848 { (uint_t)SIOCSLIFNETMASK, "SIOCSLIFNETMASK", "lifreq" },
848 849 { (uint_t)SIOCGLIFMETRIC, "SIOCGLIFMETRIC", "lifreq" },
849 850 { (uint_t)SIOCSLIFMETRIC, "SIOCSLIFMETRIC", "lifreq" },
850 851 { (uint_t)SIOCSLIFNAME, "SIOCSLIFNAME", "lifreq" },
851 852 { (uint_t)SIOCGLIFNUM, "SIOCGLIFNUM", "lifnum" },
852 853 { (uint_t)SIOCGLIFMUXID, "SIOCGLIFMUXID", "lifreq" },
853 854 { (uint_t)SIOCSLIFMUXID, "SIOCSLIFMUXID", "lifreq" },
854 855 { (uint_t)SIOCGLIFINDEX, "SIOCGLIFINDEX", "lifreq" },
855 856 { (uint_t)SIOCSLIFINDEX, "SIOCSLIFINDEX", "lifreq" },
856 857 { (uint_t)SIOCSLIFTOKEN, "SIOCSLIFTOKEN", "lifreq" },
857 858 { (uint_t)SIOCGLIFTOKEN, "SIOCGLIFTOKEN", "lifreq" },
858 859 { (uint_t)SIOCSLIFSUBNET, "SIOCSLIFSUBNET", "lifreq" },
859 860 { (uint_t)SIOCGLIFSUBNET, "SIOCGLIFSUBNET", "lifreq" },
860 861 { (uint_t)SIOCSLIFLNKINFO, "SIOCSLIFLNKINFO", "lifreq" },
861 862 { (uint_t)SIOCGLIFLNKINFO, "SIOCGLIFLNKINFO", "lifreq" },
862 863 { (uint_t)SIOCLIFDELND, "SIOCLIFDELND", "lifreq" },
863 864 { (uint_t)SIOCLIFGETND, "SIOCLIFGETND", "lifreq" },
864 865 { (uint_t)SIOCLIFSETND, "SIOCLIFSETND", "lifreq" },
865 866 { (uint_t)SIOCTMYADDR, "SIOCTMYADDR", "sioc_addrreq" },
866 867 { (uint_t)SIOCTONLINK, "SIOCTONLINK", "sioc_addrreq" },
867 868 { (uint_t)SIOCTMYSITE, "SIOCTMYSITE", "sioc_addrreq" },
868 869 { (uint_t)SIOCGLIFBINDING, "SIOCGLIFBINDING", "lifreq" },
869 870 { (uint_t)SIOCSLIFGROUPNAME, "SIOCSLIFGROUPNAME", "lifreq" },
870 871 { (uint_t)SIOCGLIFGROUPNAME, "SIOCGLIFGROUPNAME", "lifreq" },
871 872 { (uint_t)SIOCGLIFGROUPINFO, "SIOCGLIFGROUPINFO", "lifgroupinfo" },
872 873 { (uint_t)SIOCGDSTINFO, "SIOCGDSTINFO", NULL },
873 874 { (uint_t)SIOCGIP6ADDRPOLICY, "SIOCGIP6ADDRPOLICY", NULL },
874 875 { (uint_t)SIOCSIP6ADDRPOLICY, "SIOCSIP6ADDRPOLICY", NULL },
875 876 { (uint_t)SIOCSXARP, "SIOCSXARP", "xarpreq" },
876 877 { (uint_t)SIOCGXARP, "SIOCGXARP", "xarpreq" },
877 878 { (uint_t)SIOCDXARP, "SIOCDXARP", "xarpreq" },
878 879 { (uint_t)SIOCGLIFZONE, "SIOCGLIFZONE", "lifreq" },
879 880 { (uint_t)SIOCSLIFZONE, "SIOCSLIFZONE", "lifreq" },
880 881 { (uint_t)SIOCSCTPSOPT, "SIOCSCTPSOPT", NULL },
881 882 { (uint_t)SIOCSCTPGOPT, "SIOCSCTPGOPT", NULL },
882 883 { (uint_t)SIOCSCTPPEELOFF, "SIOPCSCTPPEELOFF", "int" },
883 884 { (uint_t)SIOCGLIFUSESRC, "SIOCGLIFUSESRC", "lifreq" },
884 885 { (uint_t)SIOCSLIFUSESRC, "SIOCSLIFUSESRC", "lifreq" },
885 886 { (uint_t)SIOCGLIFSRCOF, "SIOCGLIFSRCOF", "lifsrcof" },
886 887 { (uint_t)SIOCGMSFILTER, "SIOCGMSFILTER", "group_filter" },
887 888 { (uint_t)SIOCSMSFILTER, "SIOCSMSFILTER", "group_filter" },
888 889 { (uint_t)SIOCGIPMSFILTER, "SIOCGIPMSFILTER", "ip_msfilter" },
889 890 { (uint_t)SIOCSIPMSFILTER, "SIOCSIPMSFILTER", "ip_msfilter" },
890 891 { (uint_t)SIOCGLIFDADSTATE, "SIOCGLIFDADSTATE", "lifreq" },
891 892 { (uint_t)SIOCSLIFPREFIX, "SIOCSLIFPREFIX", "lifreq" },
892 893 { (uint_t)SIOCGSTAMP, "SIOCGSTAMP", "timeval" },
893 894 { (uint_t)SIOCGIFHWADDR, "SIOCGIFHWADDR", "ifreq" },
894 895 { (uint_t)SIOCGLIFHWADDR, "SIOCGLIFHWADDR", "lifreq" },
895 896
896 897 /* DES encryption */
897 898 { (uint_t)DESIOCBLOCK, "DESIOCBLOCK", "desparams" },
898 899 { (uint_t)DESIOCQUICK, "DESIOCQUICK", "desparams" },
899 900
900 901 /* Printing system */
901 902 { (uint_t)PRNIOC_GET_IFCAP, "PRNIOC_GET_IFCAP", NULL },
902 903 { (uint_t)PRNIOC_SET_IFCAP, "PRNIOC_SET_IFCAP", NULL },
903 904 { (uint_t)PRNIOC_GET_IFINFO, "PRNIOC_GET_IFINFO",
904 905 "prn_interface_info" },
905 906 { (uint_t)PRNIOC_GET_STATUS, "PRNIOC_GET_STATUS", NULL },
906 907 { (uint_t)PRNIOC_GET_1284_DEVID, "PRNIOC_GET_1284_DEVID",
907 908 "prn_1284_device_id" },
908 909 { (uint_t)PRNIOC_GET_1284_STATUS,
909 910 "PRNIOC_GET_IFCANIOC_GET_1284_STATUS", NULL },
910 911 { (uint_t)PRNIOC_GET_TIMEOUTS, "PRNIOC_GET_TIMEOUTS",
911 912 "prn_timeouts" },
912 913 { (uint_t)PRNIOC_SET_TIMEOUTS, "PRNIOC_SET_TIMEOUTS",
913 914 "prn_timeouts" },
914 915 { (uint_t)PRNIOC_RESET, "PRNIOC_RESET", NULL },
915 916
916 917 /* DTrace */
917 918 { (uint_t)DTRACEIOC_PROVIDER, "DTRACEIOC_PROVIDER", NULL },
918 919 { (uint_t)DTRACEIOC_PROBES, "DTRACEIOC_PROBES", NULL },
919 920 { (uint_t)DTRACEIOC_BUFSNAP, "DTRACEIOC_BUFSNAP", NULL },
920 921 { (uint_t)DTRACEIOC_PROBEMATCH, "DTRACEIOC_PROBEMATCH", NULL },
921 922 { (uint_t)DTRACEIOC_ENABLE, "DTRACEIOC_ENABLE", NULL },
922 923 { (uint_t)DTRACEIOC_AGGSNAP, "DTRACEIOC_AGGSNAP", NULL },
923 924 { (uint_t)DTRACEIOC_EPROBE, "DTRACEIOC_EPROBE", NULL },
924 925 { (uint_t)DTRACEIOC_PROBEARG, "DTRACEIOC_PROBEARG", NULL },
925 926 { (uint_t)DTRACEIOC_CONF, "DTRACEIOC_CONF", NULL },
926 927 { (uint_t)DTRACEIOC_STATUS, "DTRACEIOC_STATUS", NULL },
927 928 { (uint_t)DTRACEIOC_GO, "DTRACEIOC_GO", NULL },
928 929 { (uint_t)DTRACEIOC_STOP, "DTRACEIOC_STOP", NULL },
929 930 { (uint_t)DTRACEIOC_AGGDESC, "DTRACEIOC_AGGDESC", NULL },
930 931 { (uint_t)DTRACEIOC_FORMAT, "DTRACEIOC_FORMAT", NULL },
931 932 { (uint_t)DTRACEIOC_DOFGET, "DTRACEIOC_DOFGET", NULL },
932 933 { (uint_t)DTRACEIOC_REPLICATE, "DTRACEIOC_REPLICATE", NULL },
933 934
934 935 { (uint_t)DTRACEHIOC_ADD, "DTRACEHIOC_ADD", NULL },
935 936 { (uint_t)DTRACEHIOC_REMOVE, "DTRACEHIOC_REMOVE", NULL },
936 937 { (uint_t)DTRACEHIOC_ADDDOF, "DTRACEHIOC_ADDDOF", NULL },
937 938
938 939 /* /dev/cryptoadm ioctl() control codes */
939 940 { (uint_t)CRYPTO_GET_VERSION, "CRYPTO_GET_VERSION", NULL },
940 941 { (uint_t)CRYPTO_GET_DEV_LIST, "CRYPTO_GET_DEV_LIST", NULL },
941 942 { (uint_t)CRYPTO_GET_SOFT_LIST, "CRYPTO_GET_SOFT_LIST", NULL },
942 943 { (uint_t)CRYPTO_GET_DEV_INFO, "CRYPTO_GET_DEV_INFO", NULL },
943 944 { (uint_t)CRYPTO_GET_SOFT_INFO, "CRYPTO_GET_SOFT_INFO", NULL },
944 945 { (uint_t)CRYPTO_LOAD_DEV_DISABLED, "CRYPTO_LOAD_DEV_DISABLED",
945 946 NULL },
946 947 { (uint_t)CRYPTO_LOAD_SOFT_DISABLED, "CRYPTO_LOAD_SOFT_DISABLED",
947 948 NULL },
948 949 { (uint_t)CRYPTO_UNLOAD_SOFT_MODULE, "CRYPTO_UNLOAD_SOFT_MODULE",
949 950 NULL },
950 951 { (uint_t)CRYPTO_LOAD_SOFT_CONFIG, "CRYPTO_LOAD_SOFT_CONFIG",
951 952 NULL },
952 953 { (uint_t)CRYPTO_POOL_CREATE, "CRYPTO_POOL_CREATE", NULL },
953 954 { (uint_t)CRYPTO_POOL_WAIT, "CRYPTO_POOL_WAIT", NULL },
954 955 { (uint_t)CRYPTO_POOL_RUN, "CRYPTO_POOL_RUN", NULL },
955 956 { (uint_t)CRYPTO_LOAD_DOOR, "CRYPTO_LOAD_DOOR", NULL },
956 957
957 958 /* /dev/crypto ioctl() control codes */
958 959 { (uint_t)CRYPTO_GET_FUNCTION_LIST, "CRYPTO_GET_FUNCTION_LIST",
959 960 NULL },
960 961 { (uint_t)CRYPTO_GET_MECHANISM_NUMBER, "CRYPTO_GET_MECHANISM_NUMBER",
961 962 NULL },
962 963 { (uint_t)CRYPTO_OPEN_SESSION, "CRYPTO_OPEN_SESSION", NULL },
963 964 { (uint_t)CRYPTO_CLOSE_SESSION, "CRYPTO_CLOSE_SESSION", NULL },
964 965 { (uint_t)CRYPTO_CLOSE_ALL_SESSIONS, "CRYPTO_CLOSE_ALL_SESSIONS",
965 966 NULL },
966 967 { (uint_t)CRYPTO_LOGIN, "CRYPTO_LOGIN", NULL },
967 968 { (uint_t)CRYPTO_LOGOUT, "CRYPTO_LOGOUT", NULL },
968 969 { (uint_t)CRYPTO_ENCRYPT, "CRYPTO_ENCRYPT", NULL },
969 970 { (uint_t)CRYPTO_ENCRYPT_INIT, "CRYPTO_ENCRYPT_INIT", NULL },
970 971 { (uint_t)CRYPTO_ENCRYPT_UPDATE, "CRYPTO_ENCRYPT_UPDATE",
971 972 NULL },
972 973 { (uint_t)CRYPTO_ENCRYPT_FINAL, "CRYPTO_ENCRYPT_FINAL", NULL },
973 974 { (uint_t)CRYPTO_DECRYPT, "CRYPTO_DECRYPT", NULL },
974 975 { (uint_t)CRYPTO_DECRYPT_INIT, "CRYPTO_DECRYPT_INIT", NULL },
975 976 { (uint_t)CRYPTO_DECRYPT_UPDATE, "CRYPTO_DECRYPT_UPDATE",
976 977 NULL },
977 978 { (uint_t)CRYPTO_DECRYPT_FINAL, "CRYPTO_DECRYPT_FINAL", NULL },
978 979 { (uint_t)CRYPTO_DIGEST, "CRYPTO_DIGEST", NULL },
979 980 { (uint_t)CRYPTO_DIGEST_INIT, "CRYPTO_DIGEST_INIT", NULL },
980 981 { (uint_t)CRYPTO_DIGEST_UPDATE, "CRYPTO_DIGEST_UPDATE", NULL },
981 982 { (uint_t)CRYPTO_DIGEST_KEY, "CRYPTO_DIGEST_KEY", NULL },
982 983 { (uint_t)CRYPTO_DIGEST_FINAL, "CRYPTO_DIGEST_FINAL", NULL },
983 984 { (uint_t)CRYPTO_MAC, "CRYPTO_MAC", NULL },
984 985 { (uint_t)CRYPTO_MAC_INIT, "CRYPTO_MAC_INIT", NULL },
985 986 { (uint_t)CRYPTO_MAC_UPDATE, "CRYPTO_MAC_UPDATE", NULL },
986 987 { (uint_t)CRYPTO_MAC_FINAL, "CRYPTO_MAC_FINAL", NULL },
987 988 { (uint_t)CRYPTO_SIGN, "CRYPTO_SIGN", NULL },
988 989 { (uint_t)CRYPTO_SIGN_INIT, "CRYPTO_SIGN_INIT", NULL },
989 990 { (uint_t)CRYPTO_SIGN_UPDATE, "CRYPTO_SIGN_UPDATE", NULL },
990 991 { (uint_t)CRYPTO_SIGN_FINAL, "CRYPTO_SIGN_FINAL", NULL },
991 992 { (uint_t)CRYPTO_SIGN_RECOVER_INIT, "CRYPTO_SIGN_RECOVER_INIT",
992 993 NULL },
993 994 { (uint_t)CRYPTO_SIGN_RECOVER, "CRYPTO_SIGN_RECOVER", NULL },
994 995 { (uint_t)CRYPTO_VERIFY, "CRYPTO_VERIFY", NULL },
995 996 { (uint_t)CRYPTO_VERIFY_INIT, "CRYPTO_VERIFY_INIT", NULL },
996 997 { (uint_t)CRYPTO_VERIFY_UPDATE, "CRYPTO_VERIFY_UPDATE", NULL },
997 998 { (uint_t)CRYPTO_VERIFY_FINAL, "CRYPTO_VERIFY_FINAL", NULL },
998 999 { (uint_t)CRYPTO_VERIFY_RECOVER_INIT, "CRYPTO_VERIFY_RECOVER_INIT",
999 1000 NULL },
1000 1001 { (uint_t)CRYPTO_VERIFY_RECOVER, "CRYPTO_VERIFY_RECOVER",
1001 1002 NULL },
1002 1003 { (uint_t)CRYPTO_DIGEST_ENCRYPT_UPDATE, "CRYPTO_DIGEST_ENCRYPT_UPDATE",
1003 1004 NULL },
1004 1005 { (uint_t)CRYPTO_DECRYPT_DIGEST_UPDATE, "CRYPTO_DECRYPT_DIGEST_UPDATE",
1005 1006 NULL },
1006 1007 { (uint_t)CRYPTO_SIGN_ENCRYPT_UPDATE, "CRYPTO_SIGN_ENCRYPT_UPDATE",
1007 1008 NULL },
1008 1009 { (uint_t)CRYPTO_DECRYPT_VERIFY_UPDATE, "CRYPTO_DECRYPT_VERIFY_UPDATE",
1009 1010 NULL },
1010 1011 { (uint_t)CRYPTO_SEED_RANDOM, "CRYPTO_SEED_RANDOM", NULL },
1011 1012 { (uint_t)CRYPTO_GENERATE_RANDOM, "CRYPTO_GENERATE_RANDOM",
1012 1013 NULL },
1013 1014 { (uint_t)CRYPTO_OBJECT_CREATE, "CRYPTO_OBJECT_CREATE", NULL },
1014 1015 { (uint_t)CRYPTO_OBJECT_COPY, "CRYPTO_OBJECT_COPY", NULL },
1015 1016 { (uint_t)CRYPTO_OBJECT_DESTROY, "CRYPTO_OBJECT_DESTROY",
1016 1017 NULL },
1017 1018 { (uint_t)CRYPTO_OBJECT_GET_ATTRIBUTE_VALUE,
1018 1019 "CRYPTO_OBJECT_GET_ATTRIBUTE_VALUE", NULL },
1019 1020 { (uint_t)CRYPTO_OBJECT_GET_SIZE, "CRYPTO_OBJECT_GET_SIZE", NULL },
1020 1021 { (uint_t)CRYPTO_OBJECT_SET_ATTRIBUTE_VALUE,
1021 1022 "CRYPTO_OBJECT_SET_ATTRIBUTE_VALUE", NULL },
1022 1023 { (uint_t)CRYPTO_OBJECT_FIND_INIT, "CRYPTO_OBJECT_FIND_INIT",
1023 1024 NULL },
1024 1025 { (uint_t)CRYPTO_OBJECT_FIND_UPDATE, "CRYPTO_OBJECT_FIND_UPDATE",
1025 1026 NULL },
1026 1027 { (uint_t)CRYPTO_OBJECT_FIND_FINAL, "CRYPTO_OBJECT_FIND_FINAL",
1027 1028 NULL },
1028 1029 { (uint_t)CRYPTO_GENERATE_KEY, "CRYPTO_GENERATE_KEY", NULL },
1029 1030 { (uint_t)CRYPTO_GENERATE_KEY_PAIR, "CRYPTO_GENERATE_KEY_PAIR",
1030 1031 NULL },
1031 1032 { (uint_t)CRYPTO_WRAP_KEY, "CRYPTO_WRAP_KEY", NULL },
1032 1033 { (uint_t)CRYPTO_UNWRAP_KEY, "CRYPTO_UNWRAP_KEY", NULL },
1033 1034 { (uint_t)CRYPTO_DERIVE_KEY, "CRYPTO_DERIVE_KEY", NULL },
1034 1035 { (uint_t)CRYPTO_GET_PROVIDER_LIST, "CRYPTO_GET_PROVIDER_LIST",
1035 1036 NULL },
1036 1037 { (uint_t)CRYPTO_GET_PROVIDER_INFO, "CRYPTO_GET_PROVIDER_INFO",
1037 1038 NULL },
1038 1039 { (uint_t)CRYPTO_GET_PROVIDER_MECHANISMS,
1039 1040 "CRYPTO_GET_PROVIDER_MECHANISMS", NULL },
1040 1041 { (uint_t)CRYPTO_GET_PROVIDER_MECHANISM_INFO,
1041 1042 "CRYPTO_GET_PROVIDER_MECHANISM_INFO", NULL },
1042 1043 { (uint_t)CRYPTO_INIT_TOKEN, "CRYPTO_INIT_TOKEN", NULL },
1043 1044 { (uint_t)CRYPTO_INIT_PIN, "CRYPTO_INIT_PIN", NULL },
1044 1045 { (uint_t)CRYPTO_SET_PIN, "CRYPTO_SET_PIN", NULL },
1045 1046 { (uint_t)CRYPTO_NOSTORE_GENERATE_KEY,
1046 1047 "CRYPTO_NOSTORE_GENERATE_KEY", NULL },
1047 1048 { (uint_t)CRYPTO_NOSTORE_GENERATE_KEY_PAIR,
1048 1049 "CRYPTO_NOSTORE_GENERATE_KEY_PAIR", NULL },
1049 1050 { (uint_t)CRYPTO_NOSTORE_DERIVE_KEY,
1050 1051 "CRYPTO_NOSTORE_DERIVE_KEY", NULL },
1051 1052 { (uint_t)CRYPTO_FIPS140_STATUS, "CRYPTO_FIPS140_STATUS", NULL },
1052 1053 { (uint_t)CRYPTO_FIPS140_SET, "CRYPTO_FIPS140_SET", NULL },
1053 1054
1054 1055 /* kbio ioctls */
1055 1056 { (uint_t)KIOCTRANS, "KIOCTRANS", NULL },
1056 1057 { (uint_t)KIOCGTRANS, "KIOCGTRANS", NULL },
1057 1058 { (uint_t)KIOCTRANSABLE, "KIOCTRANSABLE", NULL },
1058 1059 { (uint_t)KIOCGTRANSABLE, "KIOCGTRANSABLE", NULL },
1059 1060 { (uint_t)KIOCSETKEY, "KIOCSETKEY", NULL },
1060 1061 { (uint_t)KIOCGETKEY, "KIOCGETKEY", NULL },
1061 1062 { (uint_t)KIOCCMD, "KIOCCMD", NULL },
1062 1063 { (uint_t)KIOCTYPE, "KIOCTYPE", NULL },
1063 1064 { (uint_t)KIOCSDIRECT, "KIOCSDIRECT", NULL },
1064 1065 { (uint_t)KIOCGDIRECT, "KIOCGDIRECT", NULL },
1065 1066 { (uint_t)KIOCSKEY, "KIOCSKEY", NULL },
1066 1067 { (uint_t)KIOCGKEY, "KIOCGKEY", NULL },
1067 1068 { (uint_t)KIOCSLED, "KIOCSLED", NULL },
1068 1069 { (uint_t)KIOCGLED, "KIOCGLED", NULL },
1069 1070 { (uint_t)KIOCSCOMPAT, "KIOCSCOMPAT", NULL },
1070 1071 { (uint_t)KIOCGCOMPAT, "KIOCGCOMPAT", NULL },
1071 1072 { (uint_t)KIOCSLAYOUT, "KIOCSLAYOUT", NULL },
1072 1073 { (uint_t)KIOCLAYOUT, "KIOCLAYOUT", NULL },
1073 1074 { (uint_t)KIOCSKABORTEN, "KIOCSKABORTEN", NULL },
1074 1075 { (uint_t)KIOCGRPTCOUNT, "KIOCGRPTCOUNT", NULL },
1075 1076 { (uint_t)KIOCSRPTCOUNT, "KIOCSRPTCOUNT", NULL },
1076 1077 { (uint_t)KIOCGRPTDELAY, "KIOCGRPTDELAY", NULL },
1077 1078 { (uint_t)KIOCSRPTDELAY, "KIOCSRPTDELAY", NULL },
1078 1079 { (uint_t)KIOCGRPTRATE, "KIOCGRPTRATE", NULL },
1079 1080 { (uint_t)KIOCSRPTRATE, "KIOCSRPTRATE", NULL },
1080 1081 { (uint_t)KIOCSETFREQ, "KIOCSETFREQ", NULL },
1081 1082 { (uint_t)KIOCMKTONE, "KIOCMKTONE", NULL },
1082 1083
1083 1084 /* ptm/pts driver I_STR ioctls */
1084 1085 { (uint_t)ISPTM, "ISPTM", NULL},
1085 1086 { (uint_t)UNLKPT, "UNLKPT", NULL},
1086 1087 { (uint_t)PTSSTTY, "PTSSTTY", NULL},
1087 1088 { (uint_t)ZONEPT, "ZONEPT", NULL},
1088 1089 { (uint_t)OWNERPT, "OWNERPT", NULL},
1089 1090
1090 1091 /* aggr link aggregation pseudo driver ioctls */
1091 1092 { (uint_t)LAIOC_CREATE, "LAIOC_CREATE", "laioc_create"},
1092 1093 { (uint_t)LAIOC_DELETE, "LAIOC_DELETE", "laioc_delete"},
1093 1094 { (uint_t)LAIOC_INFO, "LAIOC_INFO", "laioc_info"},
1094 1095 { (uint_t)LAIOC_ADD, "LAIOC_ADD",
1095 1096 "laioc_add_rem"},
1096 1097 { (uint_t)LAIOC_REMOVE, "LAIOC_REMOVE",
1097 1098 "laioc_add_rem"},
1098 1099 { (uint_t)LAIOC_MODIFY, "LAIOC_MODIFY", "laioc_modify"},
1099 1100
1100 1101 /* dld data-link ioctls */
1101 1102 { (uint_t)DLDIOC_ATTR, "DLDIOC_ATTR", "dld_ioc_attr"},
1102 1103 { (uint_t)DLDIOC_PHYS_ATTR, "DLDIOC_PHYS_ATTR",
1103 1104 "dld_ioc_phys_attr"},
1104 1105 { (uint_t)DLDIOC_DOORSERVER, "DLDIOC_DOORSERVER", "dld_ioc_door"},
1105 1106 { (uint_t)DLDIOC_RENAME, "DLDIOC_RENAME", "dld_ioc_rename"},
1106 1107 { (uint_t)DLDIOC_SECOBJ_GET, "DLDIOC_SECOBJ_GET",
1107 1108 "dld_ioc_secobj_get"},
1108 1109 { (uint_t)DLDIOC_SECOBJ_SET, "DLDIOC_SECOBJ_SET",
1109 1110 "dld_ioc_secobj_set"},
1110 1111 { (uint_t)DLDIOC_SECOBJ_UNSET, "DLDIOC_SECOBJ_UNSET",
1111 1112 "dld_ioc_secobj_unset"},
1112 1113 { (uint_t)DLDIOC_MACADDRGET, "DLDIOC_MACADDRGET",
1113 1114 "dld_ioc_macaddrget"},
1114 1115 { (uint_t)DLDIOC_SETMACPROP, "DLDIOC_SETMACPROP",
1115 1116 "dld_ioc_macprop_s"},
1116 1117 { (uint_t)DLDIOC_GETMACPROP, "DLDIOC_GETMACPROP",
1117 1118 "dld_ioc_macprop_s"},
1118 1119 { (uint_t)DLDIOC_ADDFLOW, "DLDIOC_ADDFLOW",
1119 1120 "dld_ioc_addflow"},
1120 1121 { (uint_t)DLDIOC_REMOVEFLOW, "DLDIOC_REMOVEFLOW",
1121 1122 "dld_ioc_removeflow"},
1122 1123 { (uint_t)DLDIOC_MODIFYFLOW, "DLDIOC_MODIFYFLOW",
1123 1124 "dld_ioc_modifyflow"},
1124 1125 { (uint_t)DLDIOC_WALKFLOW, "DLDIOC_WALKFLOW",
1125 1126 "dld_ioc_walkflow"},
1126 1127 { (uint_t)DLDIOC_USAGELOG, "DLDIOC_USAGELOG",
1127 1128 "dld_ioc_usagelog"},
1128 1129
↓ open down ↓ |
1028 lines elided |
↑ open up ↑ |
1129 1130 /* simnet ioctls */
1130 1131 { (uint_t)SIMNET_IOC_CREATE, "SIMNET_IOC_CREATE",
1131 1132 "simnet_ioc_create"},
1132 1133 { (uint_t)SIMNET_IOC_DELETE, "SIMNET_IOC_DELETE",
1133 1134 "simnet_ioc_delete"},
1134 1135 { (uint_t)SIMNET_IOC_INFO, "SIMNET_IOC_INFO",
1135 1136 "simnet_ioc_info"},
1136 1137 { (uint_t)SIMNET_IOC_MODIFY, "SIMNET_IOC_MODIFY",
1137 1138 "simnet_ioc_info"},
1138 1139
1140 + /* feth ioctls */
1141 + { (uint_t)FETH_IOC_CREATE, "FETH_IOC_CREATE",
1142 + "feth_ioc_create"},
1143 + { (uint_t)FETH_IOC_DELETE, "FETH_IOC_DELETE",
1144 + "feth_ioc_delete"},
1145 + { (uint_t)FETH_IOC_INFO, "FETH_IOC_INFO",
1146 + "feth_ioc_info"},
1147 + { (uint_t)FETH_IOC_MODIFY, "FETH_IOC_MODIFY",
1148 + "feth_ioc_modify"},
1149 +
1139 1150 /* vnic ioctls */
1140 1151 { (uint_t)VNIC_IOC_CREATE, "VNIC_IOC_CREATE",
1141 1152 "vnic_ioc_create"},
1142 1153 { (uint_t)VNIC_IOC_DELETE, "VNIC_IOC_DELETE",
1143 1154 "vnic_ioc_delete"},
1144 1155 { (uint_t)VNIC_IOC_INFO, "VNIC_IOC_INFO",
1145 1156 "vnic_ioc_info"},
1146 1157
1147 1158 /* ZFS ioctls */
1148 1159 { (uint_t)ZFS_IOC_POOL_CREATE, "ZFS_IOC_POOL_CREATE",
1149 1160 "zfs_cmd_t" },
1150 1161 { (uint_t)ZFS_IOC_POOL_DESTROY, "ZFS_IOC_POOL_DESTROY",
1151 1162 "zfs_cmd_t" },
1152 1163 { (uint_t)ZFS_IOC_POOL_IMPORT, "ZFS_IOC_POOL_IMPORT",
1153 1164 "zfs_cmd_t" },
1154 1165 { (uint_t)ZFS_IOC_POOL_EXPORT, "ZFS_IOC_POOL_EXPORT",
1155 1166 "zfs_cmd_t" },
1156 1167 { (uint_t)ZFS_IOC_POOL_CONFIGS, "ZFS_IOC_POOL_CONFIGS",
1157 1168 "zfs_cmd_t" },
1158 1169 { (uint_t)ZFS_IOC_POOL_STATS, "ZFS_IOC_POOL_STATS",
1159 1170 "zfs_cmd_t" },
1160 1171 { (uint_t)ZFS_IOC_POOL_TRYIMPORT, "ZFS_IOC_POOL_TRYIMPORT",
1161 1172 "zfs_cmd_t" },
1162 1173 { (uint_t)ZFS_IOC_POOL_SCAN, "ZFS_IOC_POOL_SCAN",
1163 1174 "zfs_cmd_t" },
1164 1175 { (uint_t)ZFS_IOC_POOL_FREEZE, "ZFS_IOC_POOL_FREEZE",
1165 1176 "zfs_cmd_t" },
1166 1177 { (uint_t)ZFS_IOC_POOL_UPGRADE, "ZFS_IOC_POOL_UPGRADE",
1167 1178 "zfs_cmd_t" },
1168 1179 { (uint_t)ZFS_IOC_POOL_GET_HISTORY, "ZFS_IOC_POOL_GET_HISTORY",
1169 1180 "zfs_cmd_t" },
1170 1181 { (uint_t)ZFS_IOC_POOL_CHECKPOINT, "ZFS_IOC_POOL_CHECKPOINT",
1171 1182 "zfs_cmd_t" },
1172 1183 { (uint_t)ZFS_IOC_POOL_DISCARD_CHECKPOINT,
1173 1184 "ZFS_IOC_POOL_DISCARD_CHECKPOINT", "zfs_cmd_t" },
1174 1185 { (uint_t)ZFS_IOC_VDEV_ADD, "ZFS_IOC_VDEV_ADD",
1175 1186 "zfs_cmd_t" },
1176 1187 { (uint_t)ZFS_IOC_VDEV_REMOVE, "ZFS_IOC_VDEV_REMOVE",
1177 1188 "zfs_cmd_t" },
1178 1189 { (uint_t)ZFS_IOC_VDEV_SET_STATE, "ZFS_IOC_VDEV_SET_STATE",
1179 1190 "zfs_cmd_t" },
1180 1191 { (uint_t)ZFS_IOC_VDEV_ATTACH, "ZFS_IOC_VDEV_ATTACH",
1181 1192 "zfs_cmd_t" },
1182 1193 { (uint_t)ZFS_IOC_VDEV_DETACH, "ZFS_IOC_VDEV_DETACH",
1183 1194 "zfs_cmd_t" },
1184 1195 { (uint_t)ZFS_IOC_VDEV_SETPATH, "ZFS_IOC_VDEV_SETPATH",
1185 1196 "zfs_cmd_t" },
1186 1197 { (uint_t)ZFS_IOC_VDEV_SETFRU, "ZFS_IOC_VDEV_SETFRU",
1187 1198 "zfs_cmd_t" },
1188 1199 { (uint_t)ZFS_IOC_OBJSET_STATS, "ZFS_IOC_OBJSET_STATS",
1189 1200 "zfs_cmd_t" },
1190 1201 { (uint_t)ZFS_IOC_OBJSET_ZPLPROPS, "ZFS_IOC_OBJSET_ZPLPROPS",
1191 1202 "zfs_cmd_t" },
1192 1203 { (uint_t)ZFS_IOC_DATASET_LIST_NEXT, "ZFS_IOC_DATASET_LIST_NEXT",
1193 1204 "zfs_cmd_t" },
1194 1205 { (uint_t)ZFS_IOC_SNAPSHOT_LIST_NEXT, "ZFS_IOC_SNAPSHOT_LIST_NEXT",
1195 1206 "zfs_cmd_t" },
1196 1207 { (uint_t)ZFS_IOC_SET_PROP, "ZFS_IOC_SET_PROP",
1197 1208 "zfs_cmd_t" },
1198 1209 { (uint_t)ZFS_IOC_CREATE, "ZFS_IOC_CREATE",
1199 1210 "zfs_cmd_t" },
1200 1211 { (uint_t)ZFS_IOC_DESTROY, "ZFS_IOC_DESTROY",
1201 1212 "zfs_cmd_t" },
1202 1213 { (uint_t)ZFS_IOC_ROLLBACK, "ZFS_IOC_ROLLBACK",
1203 1214 "zfs_cmd_t" },
1204 1215 { (uint_t)ZFS_IOC_RENAME, "ZFS_IOC_RENAME",
1205 1216 "zfs_cmd_t" },
1206 1217 { (uint_t)ZFS_IOC_RECV, "ZFS_IOC_RECV",
1207 1218 "zfs_cmd_t" },
1208 1219 { (uint_t)ZFS_IOC_SEND, "ZFS_IOC_SEND",
1209 1220 "zfs_cmd_t" },
1210 1221 { (uint_t)ZFS_IOC_INJECT_FAULT, "ZFS_IOC_INJECT_FAULT",
1211 1222 "zfs_cmd_t" },
1212 1223 { (uint_t)ZFS_IOC_CLEAR_FAULT, "ZFS_IOC_CLEAR_FAULT",
1213 1224 "zfs_cmd_t" },
1214 1225 { (uint_t)ZFS_IOC_INJECT_LIST_NEXT, "ZFS_IOC_INJECT_LIST_NEXT",
1215 1226 "zfs_cmd_t" },
1216 1227 { (uint_t)ZFS_IOC_ERROR_LOG, "ZFS_IOC_ERROR_LOG",
1217 1228 "zfs_cmd_t" },
1218 1229 { (uint_t)ZFS_IOC_CLEAR, "ZFS_IOC_CLEAR",
1219 1230 "zfs_cmd_t" },
1220 1231 { (uint_t)ZFS_IOC_PROMOTE, "ZFS_IOC_PROMOTE",
1221 1232 "zfs_cmd_t" },
1222 1233 { (uint_t)ZFS_IOC_SNAPSHOT, "ZFS_IOC_SNAPSHOT",
1223 1234 "zfs_cmd_t" },
1224 1235 { (uint_t)ZFS_IOC_DSOBJ_TO_DSNAME, "ZFS_IOC_DSOBJ_TO_DSNAME",
1225 1236 "zfs_cmd_t" },
1226 1237 { (uint_t)ZFS_IOC_OBJ_TO_PATH, "ZFS_IOC_OBJ_TO_PATH",
1227 1238 "zfs_cmd_t" },
1228 1239 { (uint_t)ZFS_IOC_POOL_SET_PROPS, "ZFS_IOC_POOL_SET_PROPS",
1229 1240 "zfs_cmd_t" },
1230 1241 { (uint_t)ZFS_IOC_POOL_GET_PROPS, "ZFS_IOC_POOL_GET_PROPS",
1231 1242 "zfs_cmd_t" },
1232 1243 { (uint_t)ZFS_IOC_SET_FSACL, "ZFS_IOC_SET_FSACL",
1233 1244 "zfs_cmd_t" },
1234 1245 { (uint_t)ZFS_IOC_GET_FSACL, "ZFS_IOC_GET_FSACL",
1235 1246 "zfs_cmd_t" },
1236 1247 { (uint_t)ZFS_IOC_SHARE, "ZFS_IOC_SHARE",
1237 1248 "zfs_cmd_t" },
1238 1249 { (uint_t)ZFS_IOC_INHERIT_PROP, "ZFS_IOC_INHERIT_PROP",
1239 1250 "zfs_cmd_t" },
1240 1251 { (uint_t)ZFS_IOC_SMB_ACL, "ZFS_IOC_SMB_ACL",
1241 1252 "zfs_cmd_t" },
1242 1253 { (uint_t)ZFS_IOC_USERSPACE_ONE, "ZFS_IOC_USERSPACE_ONE",
1243 1254 "zfs_cmd_t" },
1244 1255 { (uint_t)ZFS_IOC_USERSPACE_MANY, "ZFS_IOC_USERSPACE_MANY",
1245 1256 "zfs_cmd_t" },
1246 1257 { (uint_t)ZFS_IOC_USERSPACE_UPGRADE, "ZFS_IOC_USERSPACE_UPGRADE",
1247 1258 "zfs_cmd_t" },
1248 1259 { (uint_t)ZFS_IOC_HOLD, "ZFS_IOC_HOLD",
1249 1260 "zfs_cmd_t" },
1250 1261 { (uint_t)ZFS_IOC_RELEASE, "ZFS_IOC_RELEASE",
1251 1262 "zfs_cmd_t" },
1252 1263 { (uint_t)ZFS_IOC_GET_HOLDS, "ZFS_IOC_GET_HOLDS",
1253 1264 "zfs_cmd_t" },
1254 1265 { (uint_t)ZFS_IOC_OBJSET_RECVD_PROPS, "ZFS_IOC_OBJSET_RECVD_PROPS",
1255 1266 "zfs_cmd_t" },
1256 1267 { (uint_t)ZFS_IOC_VDEV_SPLIT, "ZFS_IOC_VDEV_SPLIT",
1257 1268 "zfs_cmd_t" },
1258 1269 { (uint_t)ZFS_IOC_NEXT_OBJ, "ZFS_IOC_NEXT_OBJ",
1259 1270 "zfs_cmd_t" },
1260 1271 { (uint_t)ZFS_IOC_DIFF, "ZFS_IOC_DIFF",
1261 1272 "zfs_cmd_t" },
1262 1273 { (uint_t)ZFS_IOC_TMP_SNAPSHOT, "ZFS_IOC_TMP_SNAPSHOT",
1263 1274 "zfs_cmd_t" },
1264 1275 { (uint_t)ZFS_IOC_OBJ_TO_STATS, "ZFS_IOC_OBJ_TO_STATS",
1265 1276 "zfs_cmd_t" },
1266 1277 { (uint_t)ZFS_IOC_SPACE_WRITTEN, "ZFS_IOC_SPACE_WRITTEN",
1267 1278 "zfs_cmd_t" },
1268 1279 { (uint_t)ZFS_IOC_DESTROY_SNAPS, "ZFS_IOC_DESTROY_SNAPS",
1269 1280 "zfs_cmd_t" },
1270 1281 { (uint_t)ZFS_IOC_POOL_REGUID, "ZFS_IOC_POOL_REGUID",
1271 1282 "zfs_cmd_t" },
1272 1283 { (uint_t)ZFS_IOC_POOL_REOPEN, "ZFS_IOC_POOL_REOPEN",
1273 1284 "zfs_cmd_t" },
1274 1285 { (uint_t)ZFS_IOC_SEND_PROGRESS, "ZFS_IOC_SEND_PROGRESS",
1275 1286 "zfs_cmd_t" },
1276 1287 { (uint_t)ZFS_IOC_LOG_HISTORY, "ZFS_IOC_LOG_HISTORY",
1277 1288 "zfs_cmd_t" },
1278 1289 { (uint_t)ZFS_IOC_SEND_NEW, "ZFS_IOC_SEND_NEW",
1279 1290 "zfs_cmd_t" },
1280 1291 { (uint_t)ZFS_IOC_SEND_SPACE, "ZFS_IOC_SEND_SPACE",
1281 1292 "zfs_cmd_t" },
1282 1293 { (uint_t)ZFS_IOC_CLONE, "ZFS_IOC_CLONE",
1283 1294 "zfs_cmd_t" },
1284 1295 { (uint_t)ZFS_IOC_REMAP, "ZFS_IOC_REMAP",
1285 1296 "zfs_cmd_t" },
1286 1297 { (uint_t)ZFS_IOC_BOOKMARK, "ZFS_IOC_BOOKMARK",
1287 1298 "zfs_cmd_t" },
1288 1299 { (uint_t)ZFS_IOC_GET_BOOKMARKS, "ZFS_IOC_GET_BOOKMARKS",
1289 1300 "zfs_cmd_t" },
1290 1301 { (uint_t)ZFS_IOC_DESTROY_BOOKMARKS, "ZFS_IOC_DESTROY_BOOKMARKS",
1291 1302 "zfs_cmd_t" },
1292 1303 { (uint_t)ZFS_IOC_CHANNEL_PROGRAM, "ZFS_IOC_CHANNEL_PROGRAM",
1293 1304 "zfs_cmd_t" },
1294 1305 { (uint_t)ZFS_IOC_POOL_INITIALIZE, "ZFS_IOC_POOL_INITIALIZE",
1295 1306 "zfs_cmd_t" },
1296 1307 { (uint_t)ZFS_IOC_POOL_SYNC, "ZFS_IOC_POOL_SYNC",
1297 1308 "zfs_cmd_t" },
1298 1309 { (uint_t)ZFS_IOC_LOAD_KEY, "ZFS_IOC_LOAD_KEY",
1299 1310 "zfs_cmd_t" },
1300 1311 { (uint_t)ZFS_IOC_UNLOAD_KEY, "ZFS_IOC_UNLOAD_KEY",
1301 1312 "zfs_cmd_t" },
1302 1313 { (uint_t)ZFS_IOC_CHANGE_KEY, "ZFS_IOC_CHANGE_KEY",
1303 1314 "zfs_cmd_t" },
1304 1315
1305 1316 /* kssl ioctls */
1306 1317 { (uint_t)KSSL_ADD_ENTRY, "KSSL_ADD_ENTRY",
1307 1318 "kssl_params_t"},
1308 1319 { (uint_t)KSSL_DELETE_ENTRY, "KSSL_DELETE_ENTRY",
1309 1320 "sockaddr_in"},
1310 1321
1311 1322 /* disk ioctls - (0x04 << 8) - dkio.h */
1312 1323 { (uint_t)DKIOCGGEOM, "DKIOCGGEOM",
1313 1324 "struct dk_geom"},
1314 1325 { (uint_t)DKIOCINFO, "DKIOCINFO",
1315 1326 "struct dk_info"},
1316 1327 { (uint_t)DKIOCEJECT, "DKIOCEJECT",
1317 1328 NULL},
1318 1329 { (uint_t)DKIOCGVTOC, "DKIOCGVTOC",
1319 1330 "struct vtoc"},
1320 1331 { (uint_t)DKIOCSVTOC, "DKIOCSVTOC",
1321 1332 "struct vtoc"},
1322 1333 { (uint_t)DKIOCGEXTVTOC, "DKIOCGEXTVTOC",
1323 1334 "struct extvtoc"},
1324 1335 { (uint_t)DKIOCSEXTVTOC, "DKIOCSEXTVTOC",
1325 1336 "struct extvtoc"},
1326 1337 { (uint_t)DKIOCFLUSHWRITECACHE, "DKIOCFLUSHWRITECACHE",
1327 1338 NULL},
1328 1339 { (uint_t)DKIOCGETWCE, "DKIOCGETWCE",
1329 1340 NULL},
1330 1341 { (uint_t)DKIOCSETWCE, "DKIOCSETWCE",
1331 1342 NULL},
1332 1343 { (uint_t)DKIOCSGEOM, "DKIOCSGEOM",
1333 1344 "struct dk_geom"},
1334 1345 { (uint_t)DKIOCSAPART, "DKIOCSAPART",
1335 1346 "struct dk_allmap"},
1336 1347 { (uint_t)DKIOCGAPART, "DKIOCGAPART",
1337 1348 "struct dk_allmap"},
1338 1349 { (uint_t)DKIOCG_PHYGEOM, "DKIOCG_PHYGEOM",
1339 1350 "struct dk_geom"},
1340 1351 { (uint_t)DKIOCG_VIRTGEOM, "DKIOCG_VIRTGEOM",
1341 1352 "struct dk_geom"},
1342 1353 { (uint_t)DKIOCLOCK, "DKIOCLOCK",
1343 1354 NULL},
1344 1355 { (uint_t)DKIOCUNLOCK, "DKIOCUNLOCK",
1345 1356 NULL},
1346 1357 { (uint_t)DKIOCSTATE, "DKIOCSTATE",
1347 1358 NULL},
1348 1359 { (uint_t)DKIOCREMOVABLE, "DKIOCREMOVABLE",
1349 1360 NULL},
1350 1361 { (uint_t)DKIOCHOTPLUGGABLE, "DKIOCHOTPLUGGABLE",
1351 1362 NULL},
1352 1363 { (uint_t)DKIOCADDBAD, "DKIOCADDBAD",
1353 1364 NULL},
1354 1365 { (uint_t)DKIOCGETDEF, "DKIOCGETDEF",
1355 1366 NULL},
1356 1367 { (uint_t)DKIOCPARTINFO, "DKIOCPARTINFO",
1357 1368 "struct part_info"},
1358 1369 { (uint_t)DKIOCEXTPARTINFO, "DKIOCEXTPARTINFO",
1359 1370 "struct extpart_info"},
1360 1371 { (uint_t)DKIOCGMEDIAINFO, "DKIOCGMEDIAINFO",
1361 1372 "struct dk_minfo"},
1362 1373 { (uint_t)DKIOCGMBOOT, "DKIOCGMBOOT",
1363 1374 NULL},
1364 1375 { (uint_t)DKIOCSMBOOT, "DKIOCSMBOOT",
1365 1376 NULL},
1366 1377 { (uint_t)DKIOCSETEFI, "DKIOCSETEFI",
1367 1378 "struct dk_efi"},
1368 1379 { (uint_t)DKIOCGETEFI, "DKIOCGETEFI",
1369 1380 "struct dk_efi"},
1370 1381 { (uint_t)DKIOCPARTITION, "DKIOCPARTITION",
1371 1382 "struct partition64"},
1372 1383 { (uint_t)DKIOCGETVOLCAP, "DKIOCGETVOLCAP",
1373 1384 "struct volcap_t"},
1374 1385 { (uint_t)DKIOCSETVOLCAP, "DKIOCSETVOLCAP",
1375 1386 "struct volcap_t"},
1376 1387 { (uint_t)DKIOCDMR, "DKIOCDMR",
1377 1388 "struct vol_directed_rd"},
1378 1389 { (uint_t)DKIOCDUMPINIT, "DKIOCDUMPINIT",
1379 1390 NULL},
1380 1391 { (uint_t)DKIOCDUMPFINI, "DKIOCDUMPFINI",
1381 1392 NULL},
1382 1393 { (uint_t)DKIOCREADONLY, "DKIOCREADONLY",
1383 1394 NULL},
1384 1395 { (uint_t)DKIOCFREE, "DKIOCFREE",
1385 1396 NULL},
1386 1397 { (uint_t)DKIOC_CANFREE, "DKIOC_CANFREE",
1387 1398 NULL},
1388 1399
1389 1400 /* disk ioctls - (0x04 << 8) - fdio.h */
1390 1401 { (uint_t)FDIOGCHAR, "FDIOGCHAR",
1391 1402 "struct fd_char"},
1392 1403 { (uint_t)FDIOSCHAR, "FDIOSCHAR",
1393 1404 "struct fd_char"},
1394 1405 { (uint_t)FDEJECT, "FDEJECT",
1395 1406 NULL},
1396 1407 { (uint_t)FDGETCHANGE, "FDGETCHANGE",
1397 1408 NULL},
1398 1409 { (uint_t)FDGETDRIVECHAR, "FDGETDRIVECHAR",
1399 1410 "struct fd_drive"},
1400 1411 { (uint_t)FDSETDRIVECHAR, "FDSETDRIVECHAR",
1401 1412 "struct fd_drive"},
1402 1413 { (uint_t)FDGETSEARCH, "FDGETSEARCH",
1403 1414 NULL},
1404 1415 { (uint_t)FDSETSEARCH, "FDSETSEARCH",
1405 1416 NULL},
1406 1417 { (uint_t)FDIOCMD, "FDIOCMD",
1407 1418 "struct fd_cmd"},
1408 1419 { (uint_t)FDRAW, "FDRAW",
1409 1420 "struct fd_raw"},
1410 1421 { (uint_t)FDDEFGEOCHAR, "FDDEFGEOCHAR",
1411 1422 NULL},
1412 1423
1413 1424 /* disk ioctls - (0x04 << 8) - cdio.h */
1414 1425 { (uint_t)CDROMPAUSE, "CDROMPAUSE",
1415 1426 NULL},
1416 1427 { (uint_t)CDROMRESUME, "CDROMRESUME",
1417 1428 NULL},
1418 1429 { (uint_t)CDROMPLAYMSF, "CDROMPLAYMSF",
1419 1430 "struct cdrom_msf"},
1420 1431 { (uint_t)CDROMPLAYTRKIND, "CDROMPLAYTRKIND",
1421 1432 "struct cdrom_ti"},
1422 1433 { (uint_t)CDROMREADTOCHDR, "CDROMREADTOCHDR",
1423 1434 "struct cdrom_tochdr"},
1424 1435 { (uint_t)CDROMREADTOCENTRY, "CDROMREADTOCENTRY",
1425 1436 "struct cdrom_tocentry"},
1426 1437 { (uint_t)CDROMSTOP, "CDROMSTOP",
1427 1438 NULL},
1428 1439 { (uint_t)CDROMSTART, "CDROMSTART",
1429 1440 NULL},
1430 1441 { (uint_t)CDROMEJECT, "CDROMEJECT",
1431 1442 NULL},
1432 1443 { (uint_t)CDROMVOLCTRL, "CDROMVOLCTRL",
1433 1444 "struct cdrom_volctrl"},
1434 1445 { (uint_t)CDROMSUBCHNL, "CDROMSUBCHNL",
1435 1446 "struct cdrom_subchnl"},
1436 1447 { (uint_t)CDROMREADMODE2, "CDROMREADMODE2",
1437 1448 "struct cdrom_read"},
1438 1449 { (uint_t)CDROMREADMODE1, "CDROMREADMODE1",
1439 1450 "struct cdrom_read"},
1440 1451 { (uint_t)CDROMREADOFFSET, "CDROMREADOFFSET",
1441 1452 NULL},
1442 1453 { (uint_t)CDROMGBLKMODE, "CDROMGBLKMODE",
1443 1454 NULL},
1444 1455 { (uint_t)CDROMSBLKMODE, "CDROMSBLKMODE",
1445 1456 NULL},
1446 1457 { (uint_t)CDROMCDDA, "CDROMCDDA",
1447 1458 "struct cdrom_cdda"},
1448 1459 { (uint_t)CDROMCDXA, "CDROMCDXA",
1449 1460 "struct cdrom_cdxa"},
1450 1461 { (uint_t)CDROMSUBCODE, "CDROMSUBCODE",
1451 1462 "struct cdrom_subcode"},
1452 1463 { (uint_t)CDROMGDRVSPEED, "CDROMGDRVSPEED",
1453 1464 NULL},
1454 1465 { (uint_t)CDROMSDRVSPEED, "CDROMSDRVSPEED",
1455 1466 NULL},
1456 1467 { (uint_t)CDROMCLOSETRAY, "CDROMCLOSETRAY",
1457 1468 NULL},
1458 1469
1459 1470 /* disk ioctls - (0x04 << 8) - uscsi.h */
1460 1471 { (uint_t)USCSICMD, "USCSICMD",
1461 1472 "struct uscsi_cmd"},
1462 1473
1463 1474 /* dumpadm ioctls - (0xdd << 8) */
1464 1475 { (uint_t)DIOCGETDEV, "DIOCGETDEV",
1465 1476 NULL},
1466 1477
1467 1478 /* mntio ioctls - ('m' << 8) */
1468 1479 { (uint_t)MNTIOC_NMNTS, "MNTIOC_NMNTS",
1469 1480 NULL},
1470 1481 { (uint_t)MNTIOC_GETDEVLIST, "MNTIOC_GETDEVLIST",
1471 1482 NULL},
1472 1483 { (uint_t)MNTIOC_SETTAG, "MNTIOC_SETTAG",
1473 1484 "struct mnttagdesc"},
1474 1485 { (uint_t)MNTIOC_CLRTAG, "MNTIOC_CLRTAG",
1475 1486 "struct mnttagdesc"},
1476 1487 { (uint_t)MNTIOC_SHOWHIDDEN, "MNTIOC_SHOWHIDDEN",
1477 1488 NULL},
1478 1489 { (uint_t)MNTIOC_GETMNTENT, "MNTIOC_GETMNTENT",
1479 1490 "struct mnttab"},
1480 1491 { (uint_t)MNTIOC_GETEXTMNTENT, "MNTIOC_GETEXTMNTENT",
1481 1492 "struct extmnttab"},
1482 1493 { (uint_t)MNTIOC_GETMNTANY, "MNTIOC_GETMNTANY",
1483 1494 "struct mnttab"},
1484 1495
1485 1496 /* devinfo ioctls - ('df' << 8) - devinfo_impl.h */
1486 1497 { (uint_t)DINFOUSRLD, "DINFOUSRLD",
1487 1498 NULL},
1488 1499 { (uint_t)DINFOLODRV, "DINFOLODRV",
1489 1500 NULL},
1490 1501 { (uint_t)DINFOIDENT, "DINFOIDENT",
1491 1502 NULL},
1492 1503
1493 1504 { (uint_t)IPTUN_CREATE, "IPTUN_CREATE", "iptun_kparams_t"},
1494 1505 { (uint_t)IPTUN_DELETE, "IPTUN_DELETE", "datalink_id_t"},
1495 1506 { (uint_t)IPTUN_MODIFY, "IPTUN_MODIFY", "iptun_kparams_t"},
1496 1507 { (uint_t)IPTUN_INFO, "IPTUN_INFO", NULL},
1497 1508 { (uint_t)IPTUN_SET_6TO4RELAY, "IPTUN_SET_6TO4RELAY", NULL},
1498 1509 { (uint_t)IPTUN_GET_6TO4RELAY, "IPTUN_GET_6TO4RELAY", NULL},
1499 1510
1500 1511 /* zcons ioctls */
1501 1512 { (uint_t)ZC_HOLDSLAVE, "ZC_HOLDSLAVE", NULL },
1502 1513 { (uint_t)ZC_RELEASESLAVE, "ZC_RELEASESLAVE", NULL },
1503 1514
1504 1515 /* hid ioctls - ('h' << 8) - hid.h */
1505 1516 { (uint_t)HIDIOCKMGDIRECT, "HIDIOCKMGDIRECT", NULL },
1506 1517 { (uint_t)HIDIOCKMSDIRECT, "HIDIOCKMSDIRECT", NULL },
1507 1518
1508 1519 /* pm ioctls */
1509 1520 { (uint_t)PM_SCHEDULE, "PM_SCHEDULE", NULL },
1510 1521 { (uint_t)PM_GET_IDLE_TIME, "PM_GET_IDLE_TIME", NULL },
1511 1522 { (uint_t)PM_GET_NUM_CMPTS, "PM_GET_NUM_CMPTS", NULL },
1512 1523 { (uint_t)PM_GET_THRESHOLD, "PM_GET_THRESHOLD", NULL },
1513 1524 { (uint_t)PM_SET_THRESHOLD, "PM_SET_THRESHOLD", NULL },
1514 1525 { (uint_t)PM_GET_NORM_PWR, "PM_GET_NORM_PWR", NULL },
1515 1526 { (uint_t)PM_SET_CUR_PWR, "PM_SET_CUR_PWR", NULL },
1516 1527 { (uint_t)PM_GET_CUR_PWR, "PM_GET_CUR_PWR", NULL },
1517 1528 { (uint_t)PM_GET_NUM_DEPS, "PM_GET_NUM_DEPS", NULL },
1518 1529 { (uint_t)PM_GET_DEP, "PM_GET_DEP", NULL },
1519 1530 { (uint_t)PM_ADD_DEP, "PM_ADD_DEP", NULL },
1520 1531 { (uint_t)PM_REM_DEP, "PM_REM_DEP", NULL },
1521 1532 { (uint_t)PM_REM_DEVICE, "PM_REM_DEVICE", NULL },
1522 1533 { (uint_t)PM_REM_DEVICES, "PM_REM_DEVICES", NULL },
1523 1534 { (uint_t)PM_DISABLE_AUTOPM, "PM_DISABLE_AUTOPM", NULL },
1524 1535 { (uint_t)PM_REENABLE_AUTOPM, "PM_REENABLE_AUTOPM", NULL },
1525 1536 { (uint_t)PM_SET_NORM_PWR, "PM_SET_NORM_PWR", NULL },
1526 1537 { (uint_t)PM_GET_SYSTEM_THRESHOLD, "PM_GET_SYSTEM_THRESHOLD",
1527 1538 NULL },
1528 1539 { (uint_t)PM_GET_DEFAULT_SYSTEM_THRESHOLD,
1529 1540 "PM_GET_DEFAULT_SYSTEM_THRESHOLD", NULL },
1530 1541 { (uint_t)PM_SET_SYSTEM_THRESHOLD, "PM_SET_SYSTEM_THRESHOLD",
1531 1542 NULL },
1532 1543 { (uint_t)PM_START_PM, "PM_START_PM", NULL },
1533 1544 { (uint_t)PM_STOP_PM, "PM_STOP_PM", NULL },
1534 1545 { (uint_t)PM_RESET_PM, "PM_RESET_PM", NULL },
1535 1546 { (uint_t)PM_GET_PM_STATE, "PM_GET_PM_STATE", NULL },
1536 1547 { (uint_t)PM_GET_AUTOS3_STATE, "PM_GET_AUTOS3_STATE", NULL },
1537 1548 { (uint_t)PM_GET_S3_SUPPORT_STATE, "PM_GET_S3_SUPPORT_STATE",
1538 1549 NULL },
1539 1550 { (uint_t)PM_IDLE_DOWN, "PM_IDLE_DOWN", NULL },
1540 1551 { (uint_t)PM_START_CPUPM, "PM_START_CPUPM", NULL },
1541 1552 { (uint_t)PM_START_CPUPM_EV, "PM_START_CPUPM_EV", NULL },
1542 1553 { (uint_t)PM_START_CPUPM_POLL, "PM_START_CPUPM_POLL", NULL },
1543 1554 { (uint_t)PM_STOP_CPUPM, "PM_STOP_CPUPM", NULL },
1544 1555 { (uint_t)PM_GET_CPU_THRESHOLD, "PM_GET_CPU_THRESHOLD", NULL },
1545 1556 { (uint_t)PM_SET_CPU_THRESHOLD, "PM_SET_CPU_THRESHOLD", NULL },
1546 1557 { (uint_t)PM_GET_CPUPM_STATE, "PM_GET_CPUPM_STATE", NULL },
1547 1558 { (uint_t)PM_START_AUTOS3, "PM_START_AUTOS3", NULL },
1548 1559 { (uint_t)PM_STOP_AUTOS3, "PM_STOP_AUTOS3", NULL },
1549 1560 { (uint_t)PM_ENABLE_S3, "PM_ENABLE_S3", NULL },
1550 1561 { (uint_t)PM_DISABLE_S3, "PM_DISABLE_S3", NULL },
1551 1562 { (uint_t)PM_ENTER_S3, "PM_ENTER_S3", NULL },
1552 1563 { (uint_t)PM_DISABLE_CPU_DEEP_IDLE, "PM_DISABLE_CPU_DEEP_IDLE",
1553 1564 NULL },
1554 1565 { (uint_t)PM_ENABLE_CPU_DEEP_IDLE, "PM_START_CPU_DEEP_IDLE",
1555 1566 NULL },
1556 1567 { (uint_t)PM_DEFAULT_CPU_DEEP_IDLE, "PM_DFLT_CPU_DEEP_IDLE",
1557 1568 NULL },
1558 1569 #ifdef _SYSCALL32
1559 1570 { (uint_t)PM_GET_STATE_CHANGE, "PM_GET_STATE_CHANGE",
1560 1571 "pm_state_change32_t" },
1561 1572 { (uint_t)PM_GET_STATE_CHANGE_WAIT, "PM_GET_STATE_CHANGE_WAIT",
1562 1573 "pm_state_change32_t" },
1563 1574 { (uint_t)PM_DIRECT_NOTIFY, "PM_DIRECT_NOTIFY",
1564 1575 "pm_state_change32_t" },
1565 1576 { (uint_t)PM_DIRECT_NOTIFY_WAIT, "PM_DIRECT_NOTIFY_WAIT",
1566 1577 "pm_state_change32_t" },
1567 1578 { (uint_t)PM_REPARSE_PM_PROPS, "PM_REPARSE_PM_PROPS",
1568 1579 "pm_req32_t" },
1569 1580 { (uint_t)PM_SET_DEVICE_THRESHOLD, "PM_SET_DEVICE_THRESHOLD",
1570 1581 "pm_req32_t" },
1571 1582 { (uint_t)PM_GET_STATS, "PM_GET_STATS",
1572 1583 "pm_req32_t" },
1573 1584 { (uint_t)PM_GET_DEVICE_THRESHOLD, "PM_GET_DEVICE_THRESHOLD",
1574 1585 "pm_req32_t" },
1575 1586 { (uint_t)PM_GET_POWER_NAME, "PM_GET_POWER_NAME",
1576 1587 "pm_req32_t" },
1577 1588 { (uint_t)PM_GET_POWER_LEVELS, "PM_GET_POWER_LEVELS",
1578 1589 "pm_req32_t" },
1579 1590 { (uint_t)PM_GET_NUM_COMPONENTS, "PM_GET_NUM_COMPONENTS",
1580 1591 "pm_req32_t" },
1581 1592 { (uint_t)PM_GET_COMPONENT_NAME, "PM_GET_COMPONENT_NAME",
1582 1593 "pm_req32_t" },
1583 1594 { (uint_t)PM_GET_NUM_POWER_LEVELS, "PM_GET_NUM_POWER_LEVELS",
1584 1595 "pm_req32_t" },
1585 1596 { (uint_t)PM_DIRECT_PM, "PM_DIRECT_PM",
1586 1597 "pm_req32_t" },
1587 1598 { (uint_t)PM_RELEASE_DIRECT_PM, "PM_RELEASE_DIRECT_PM",
1588 1599 "pm_req32_t" },
1589 1600 { (uint_t)PM_RESET_DEVICE_THRESHOLD, "PM_RESET_DEVICE_THRESHOLD",
1590 1601 "pm_req32_t" },
1591 1602 { (uint_t)PM_GET_DEVICE_TYPE, "PM_GET_DEVICE_TYPE",
1592 1603 "pm_req32_t" },
1593 1604 { (uint_t)PM_SET_COMPONENT_THRESHOLDS, "PM_SET_COMPONENT_THRESHOLDS",
1594 1605 "pm_req32_t" },
1595 1606 { (uint_t)PM_GET_COMPONENT_THRESHOLDS, "PM_GET_COMPONENT_THRESHOLDS",
1596 1607 "pm_req32_t" },
1597 1608 { (uint_t)PM_GET_DEVICE_THRESHOLD_BASIS,
1598 1609 "PM_GET_DEVICE_THRESHOLD_BASIS", "pm_req32_t" },
1599 1610 { (uint_t)PM_SET_CURRENT_POWER, "PM_SET_CURRENT_POWER",
1600 1611 "pm_req32_t" },
1601 1612 { (uint_t)PM_GET_CURRENT_POWER, "PM_GET_CURRENT_POWER",
1602 1613 "pm_req32_t" },
1603 1614 { (uint_t)PM_GET_FULL_POWER, "PM_GET_FULL_POWER",
1604 1615 "pm_req32_t" },
1605 1616 { (uint_t)PM_ADD_DEPENDENT, "PM_ADD_DEPENDENT",
1606 1617 "pm_req32_t" },
1607 1618 { (uint_t)PM_GET_TIME_IDLE, "PM_GET_TIME_IDLE",
1608 1619 "pm_req32_t" },
1609 1620 { (uint_t)PM_ADD_DEPENDENT_PROPERTY, "PM_ADD_DEPENDENT_PROPERTY",
1610 1621 "pm_req32_t" },
1611 1622 { (uint_t)PM_GET_CMD_NAME, "PM_GET_CMD_NAME",
1612 1623 "pm_req32_t" },
1613 1624 { (uint_t)PM_SEARCH_LIST, "PM_SEARCH_LIST",
1614 1625 "pm_searchargs32_t" },
1615 1626 #else /* _SYSCALL32 */
1616 1627 { (uint_t)PM_GET_STATE_CHANGE, "PM_GET_STATE_CHANGE",
1617 1628 "pm_state_change_t" },
1618 1629 { (uint_t)PM_GET_STATE_CHANGE_WAIT, "PM_GET_STATE_CHANGE_WAIT",
1619 1630 "pm_state_change_t" },
1620 1631 { (uint_t)PM_DIRECT_NOTIFY, "PM_DIRECT_NOTIFY",
1621 1632 "pm_state_change_t" },
1622 1633 { (uint_t)PM_DIRECT_NOTIFY_WAIT, "PM_DIRECT_NOTIFY_WAIT",
1623 1634 "pm_state_change_t" },
1624 1635 { (uint_t)PM_REPARSE_PM_PROPS, "PM_REPARSE_PM_PROPS",
1625 1636 "pm_req_t" },
1626 1637 { (uint_t)PM_SET_DEVICE_THRESHOLD, "PM_SET_DEVICE_THRESHOLD",
1627 1638 "pm_req_t" },
1628 1639 { (uint_t)PM_GET_STATS, "PM_GET_STATS",
1629 1640 "pm_req_t" },
1630 1641 { (uint_t)PM_GET_DEVICE_THRESHOLD, "PM_GET_DEVICE_THRESHOLD",
1631 1642 "pm_req_t" },
1632 1643 { (uint_t)PM_GET_POWER_NAME, "PM_GET_POWER_NAME",
1633 1644 "pm_req_t" },
1634 1645 { (uint_t)PM_GET_POWER_LEVELS, "PM_GET_POWER_LEVELS",
1635 1646 "pm_req_t" },
1636 1647 { (uint_t)PM_GET_NUM_COMPONENTS, "PM_GET_NUM_COMPONENTS",
1637 1648 "pm_req_t" },
1638 1649 { (uint_t)PM_GET_COMPONENT_NAME, "PM_GET_COMPONENT_NAME",
1639 1650 "pm_req_t" },
1640 1651 { (uint_t)PM_GET_NUM_POWER_LEVELS, "PM_GET_NUM_POWER_LEVELS",
1641 1652 "pm_req_t" },
1642 1653 { (uint_t)PM_DIRECT_PM, "PM_DIRECT_PM",
1643 1654 "pm_req_t" },
1644 1655 { (uint_t)PM_RELEASE_DIRECT_PM, "PM_RELEASE_DIRECT_PM",
1645 1656 "pm_req_t" },
1646 1657 { (uint_t)PM_RESET_DEVICE_THRESHOLD, "PM_RESET_DEVICE_THRESHOLD",
1647 1658 "pm_req_t" },
1648 1659 { (uint_t)PM_GET_DEVICE_TYPE, "PM_GET_DEVICE_TYPE",
1649 1660 "pm_req_t" },
1650 1661 { (uint_t)PM_SET_COMPONENT_THRESHOLDS, "PM_SET_COMPONENT_THRESHOLDS",
1651 1662 "pm_req_t" },
1652 1663 { (uint_t)PM_GET_COMPONENT_THRESHOLDS, "PM_GET_COMPONENT_THRESHOLDS",
1653 1664 "pm_req_t" },
1654 1665 { (uint_t)PM_GET_DEVICE_THRESHOLD_BASIS,
1655 1666 "PM_GET_DEVICE_THRESHOLD_BASIS", "pm_req_t" },
1656 1667 { (uint_t)PM_SET_CURRENT_POWER, "PM_SET_CURRENT_POWER",
1657 1668 "pm_req_t" },
1658 1669 { (uint_t)PM_GET_CURRENT_POWER, "PM_GET_CURRENT_POWER",
1659 1670 "pm_req_t" },
1660 1671 { (uint_t)PM_GET_FULL_POWER, "PM_GET_FULL_POWER",
1661 1672 "pm_req_t" },
1662 1673 { (uint_t)PM_ADD_DEPENDENT, "PM_ADD_DEPENDENT",
1663 1674 "pm_req_t" },
1664 1675 { (uint_t)PM_GET_TIME_IDLE, "PM_GET_TIME_IDLE",
1665 1676 "pm_req_t" },
1666 1677 { (uint_t)PM_ADD_DEPENDENT_PROPERTY, "PM_ADD_DEPENDENT_PROPERTY",
1667 1678 "pm_req_t" },
1668 1679 { (uint_t)PM_GET_CMD_NAME, "PM_GET_CMD_NAME",
1669 1680 "pm_req_t" },
1670 1681 { (uint_t)PM_SEARCH_LIST, "PM_SEARCH_LIST",
1671 1682 "pm_searchargs_t" },
1672 1683 #endif /* _SYSCALL */
1673 1684
1674 1685 /* cpuid ioctls */
1675 1686 { (uint_t)CPUID_GET_HWCAP, "CPUID_GET_HWCAP", NULL },
1676 1687 #if defined(__i386) || defined(__amd64)
1677 1688 { (uint_t)CPUID_RDMSR, "CPUID_RDMSR", NULL },
1678 1689 #endif
1679 1690
1680 1691 { (uint_t)0, NULL, NULL }
1681 1692 };
1682 1693
1683 1694 void
1684 1695 ioctl_ioccom(char *buf, size_t size, uint_t code, int nbytes, int x, int y)
1685 1696 {
1686 1697 const char *inoutstr;
1687 1698
1688 1699 if (code & IOC_VOID)
1689 1700 inoutstr = "";
1690 1701 else if ((code & IOC_INOUT) == IOC_INOUT)
1691 1702 inoutstr = "WR";
1692 1703 else
1693 1704 inoutstr = code & IOC_IN ? "W" : "R";
1694 1705
1695 1706 if (isascii(x) && isprint(x))
1696 1707 (void) snprintf(buf, size, "_IO%sN('%c', %d, %d)", inoutstr,
1697 1708 x, y, nbytes);
1698 1709 else
1699 1710 (void) snprintf(buf, size, "_IO%sN(0x%x, %d, %d)", inoutstr,
1700 1711 x, y, nbytes);
1701 1712 }
1702 1713
1703 1714
1704 1715 const char *
1705 1716 ioctlname(private_t *pri, uint_t code)
1706 1717 {
1707 1718 const struct ioc *ip;
1708 1719 const char *str = NULL;
1709 1720
1710 1721 for (ip = &ioc[0]; ip->name; ip++) {
1711 1722 if (code == ip->code) {
1712 1723 str = ip->name;
1713 1724 break;
1714 1725 }
1715 1726 }
1716 1727
1717 1728 /*
1718 1729 * Developers hide ascii ioctl names in the ioctl subcode; for example
1719 1730 * 0x445210 should be printed 'D'<<16|'R'<<8|10. We allow for all
1720 1731 * three high order bytes (called hi, mid and lo) to contain ascii
1721 1732 * characters.
1722 1733 */
1723 1734 if (str == NULL) {
1724 1735 int c_hi = code >> 24;
1725 1736 int c_mid = (code >> 16) & 0xff;
1726 1737 int c_mid_nm = (code >> 16);
1727 1738 int c_lo = (code >> 8) & 0xff;
1728 1739 int c_lo_nm = code >> 8;
1729 1740
1730 1741 if (isascii(c_lo) && isprint(c_lo) &&
1731 1742 isascii(c_mid) && isprint(c_mid) &&
1732 1743 isascii(c_hi) && isprint(c_hi))
1733 1744 (void) sprintf(pri->code_buf,
1734 1745 "(('%c'<<24)|('%c'<<16)|('%c'<<8)|%d)",
1735 1746 c_hi, c_mid, c_lo, code & 0xff);
1736 1747 else if (isascii(c_lo) && isprint(c_lo) &&
1737 1748 isascii(c_mid_nm) && isprint(c_mid_nm))
1738 1749 (void) sprintf(pri->code_buf,
1739 1750 "(('%c'<<16)|('%c'<<8)|%d)", c_mid, c_lo,
1740 1751 code & 0xff);
1741 1752 else if (isascii(c_lo_nm) && isprint(c_lo_nm))
1742 1753 (void) sprintf(pri->code_buf, "(('%c'<<8)|%d)",
1743 1754 c_lo_nm, code & 0xff);
1744 1755 else if (code & (IOC_VOID|IOC_INOUT))
1745 1756 ioctl_ioccom(pri->code_buf, sizeof (pri->code_buf),
1746 1757 code, c_mid, c_lo, code & 0xff);
1747 1758 else
1748 1759 (void) sprintf(pri->code_buf, "0x%.4X", code);
1749 1760 str = (const char *)pri->code_buf;
1750 1761 }
1751 1762
1752 1763 return (str);
1753 1764 }
1754 1765
1755 1766
1756 1767 const char *
1757 1768 ioctldatastruct(uint_t code)
1758 1769 {
1759 1770 const struct ioc *ip;
1760 1771 const char *str = NULL;
1761 1772
1762 1773 for (ip = &ioc[0]; ip->name != NULL; ip++) {
1763 1774 if (code == ip->code) {
1764 1775 str = ip->datastruct;
1765 1776 break;
1766 1777 }
1767 1778 }
1768 1779 return (str);
1769 1780 }
1770 1781
1771 1782
1772 1783 const char *
1773 1784 fcntlname(int code)
1774 1785 {
1775 1786 const char *str = NULL;
1776 1787
1777 1788 if (code >= FCNTLMIN && code <= FCNTLMAX)
1778 1789 str = FCNTLname[code-FCNTLMIN];
1779 1790 return (str);
1780 1791 }
1781 1792
1782 1793 const char *
1783 1794 sfsname(int code)
1784 1795 {
1785 1796 const char *str = NULL;
1786 1797
1787 1798 if (code >= SYSFSMIN && code <= SYSFSMAX)
1788 1799 str = SYSFSname[code-SYSFSMIN];
1789 1800 return (str);
1790 1801 }
1791 1802
1792 1803 /* ARGSUSED */
1793 1804 const char *
1794 1805 si86name(int code)
1795 1806 {
1796 1807 const char *str = NULL;
1797 1808
1798 1809 #if defined(__i386) || defined(__amd64)
1799 1810 switch (code) {
1800 1811 case SI86SWPI: str = "SI86SWPI"; break;
1801 1812 case SI86SYM: str = "SI86SYM"; break;
1802 1813 case SI86CONF: str = "SI86CONF"; break;
1803 1814 case SI86BOOT: str = "SI86BOOT"; break;
1804 1815 case SI86AUTO: str = "SI86AUTO"; break;
1805 1816 case SI86EDT: str = "SI86EDT"; break;
1806 1817 case SI86SWAP: str = "SI86SWAP"; break;
1807 1818 case SI86FPHW: str = "SI86FPHW"; break;
1808 1819 case SI86FPSTART: str = "SI86FPSTART"; break;
1809 1820 case GRNON: str = "GRNON"; break;
1810 1821 case GRNFLASH: str = "GRNFLASH"; break;
1811 1822 case STIME: str = "STIME"; break;
1812 1823 case SETNAME: str = "SETNAME"; break;
1813 1824 case RNVR: str = "RNVR"; break;
1814 1825 case WNVR: str = "WNVR"; break;
1815 1826 case RTODC: str = "RTODC"; break;
1816 1827 case CHKSER: str = "CHKSER"; break;
1817 1828 case SI86NVPRT: str = "SI86NVPRT"; break;
1818 1829 case SANUPD: str = "SANUPD"; break;
1819 1830 case SI86KSTR: str = "SI86KSTR"; break;
1820 1831 case SI86MEM: str = "SI86MEM"; break;
1821 1832 case SI86TODEMON: str = "SI86TODEMON"; break;
1822 1833 case SI86CCDEMON: str = "SI86CCDEMON"; break;
1823 1834 case SI86CACHE: str = "SI86CACHE"; break;
1824 1835 case SI86DELMEM: str = "SI86DELMEM"; break;
1825 1836 case SI86ADDMEM: str = "SI86ADDMEM"; break;
1826 1837 /* 71 through 74 reserved for VPIX */
1827 1838 case SI86V86: str = "SI86V86"; break;
1828 1839 case SI86SLTIME: str = "SI86SLTIME"; break;
1829 1840 case SI86DSCR: str = "SI86DSCR"; break;
1830 1841 case RDUBLK: str = "RDUBLK"; break;
1831 1842 /* NFA entry point */
1832 1843 case SI86NFA: str = "SI86NFA"; break;
1833 1844 case SI86VM86: str = "SI86VM86"; break;
1834 1845 case SI86VMENABLE: str = "SI86VMENABLE"; break;
1835 1846 case SI86LIMUSER: str = "SI86LIMUSER"; break;
1836 1847 case SI86RDID: str = "SI86RDID"; break;
1837 1848 case SI86RDBOOT: str = "SI86RDBOOT"; break;
1838 1849 /* Merged Product defines */
1839 1850 case SI86SHFIL: str = "SI86SHFIL"; break;
1840 1851 case SI86PCHRGN: str = "SI86PCHRGN"; break;
1841 1852 case SI86BADVISE: str = "SI86BADVISE"; break;
1842 1853 case SI86SHRGN: str = "SI86SHRGN"; break;
1843 1854 case SI86CHIDT: str = "SI86CHIDT"; break;
1844 1855 case SI86EMULRDA: str = "SI86EMULRDA"; break;
1845 1856 /* RTC commands */
1846 1857 case WTODC: str = "WTODC"; break;
1847 1858 case SGMTL: str = "SGMTL"; break;
1848 1859 case GGMTL: str = "GGMTL"; break;
1849 1860 case RTCSYNC: str = "RTCSYNC"; break;
1850 1861 }
1851 1862 #endif /* __i386 */
1852 1863
1853 1864 return (str);
1854 1865 }
1855 1866
1856 1867 const char *
1857 1868 utscode(int code)
1858 1869 {
1859 1870 const char *str = NULL;
1860 1871
1861 1872 switch (code) {
1862 1873 case UTS_UNAME: str = "UNAME"; break;
1863 1874 case UTS_USTAT: str = "USTAT"; break;
1864 1875 case UTS_FUSERS: str = "FUSERS"; break;
1865 1876 }
1866 1877
1867 1878 return (str);
1868 1879 }
1869 1880
1870 1881 const char *
1871 1882 rctlsyscode(int code)
1872 1883 {
1873 1884 const char *str = NULL;
1874 1885 switch (code) {
1875 1886 case 0: str = "GETRCTL"; break;
1876 1887 case 1: str = "SETRCTL"; break;
1877 1888 case 2: str = "RCTLSYS_LST"; break;
1878 1889 case 3: str = "RCTLSYS_CTL"; break;
1879 1890 case 4: str = "RCTLSYS_SETPROJ"; break;
1880 1891 default: str = "UNKNOWN"; break;
1881 1892 }
1882 1893 return (str);
1883 1894 }
1884 1895
1885 1896 const char *
1886 1897 rctl_local_action(private_t *pri, uint_t val)
1887 1898 {
1888 1899 uint_t action = val & (~RCTL_LOCAL_ACTION_MASK);
1889 1900
1890 1901 char *s = pri->code_buf;
1891 1902
1892 1903 *s = '\0';
1893 1904
1894 1905 if (action & RCTL_LOCAL_NOACTION) {
1895 1906 action ^= RCTL_LOCAL_NOACTION;
1896 1907 (void) strlcat(s, "|RCTL_LOCAL_NOACTION",
1897 1908 sizeof (pri->code_buf));
1898 1909 }
1899 1910 if (action & RCTL_LOCAL_SIGNAL) {
1900 1911 action ^= RCTL_LOCAL_SIGNAL;
1901 1912 (void) strlcat(s, "|RCTL_LOCAL_SIGNAL",
1902 1913 sizeof (pri->code_buf));
1903 1914 }
1904 1915 if (action & RCTL_LOCAL_DENY) {
1905 1916 action ^= RCTL_LOCAL_DENY;
1906 1917 (void) strlcat(s, "|RCTL_LOCAL_DENY",
1907 1918 sizeof (pri->code_buf));
1908 1919 }
1909 1920
1910 1921 if ((action & (~RCTL_LOCAL_ACTION_MASK)) != 0)
1911 1922 return (NULL);
1912 1923 else if (*s != '\0')
1913 1924 return (s+1);
1914 1925 else
1915 1926 return (NULL);
1916 1927 }
1917 1928
1918 1929
1919 1930 const char *
1920 1931 rctl_local_flags(private_t *pri, uint_t val)
1921 1932 {
1922 1933 uint_t pval = val & RCTL_LOCAL_ACTION_MASK;
1923 1934 char *s = pri->code_buf;
1924 1935
1925 1936 *s = '\0';
1926 1937
1927 1938 if (pval & RCTL_LOCAL_MAXIMAL) {
1928 1939 pval ^= RCTL_LOCAL_MAXIMAL;
1929 1940 (void) strlcat(s, "|RCTL_LOCAL_MAXIMAL",
1930 1941 sizeof (pri->code_buf));
1931 1942 }
1932 1943
1933 1944 if ((pval & RCTL_LOCAL_ACTION_MASK) != 0)
1934 1945 return (NULL);
1935 1946 else if (*s != '\0')
1936 1947 return (s+1);
1937 1948 else
1938 1949 return (NULL);
1939 1950 }
1940 1951
1941 1952
1942 1953 const char *
1943 1954 sconfname(int code)
1944 1955 {
1945 1956 const char *str = NULL;
1946 1957
1947 1958 if (code >= SCONFMIN && code <= SCONFMAX)
1948 1959 str = SCONFname[code-SCONFMIN];
1949 1960 return (str);
1950 1961 }
1951 1962
1952 1963 const char *
1953 1964 pathconfname(int code)
1954 1965 {
1955 1966 const char *str = NULL;
1956 1967
1957 1968 if (code >= PATHCONFMIN && code <= PATHCONFMAX)
1958 1969 str = PATHCONFname[code-PATHCONFMIN];
1959 1970 return (str);
1960 1971 }
1961 1972
1962 1973 #define ALL_O_FLAGS \
1963 1974 (O_NDELAY|O_APPEND|O_SYNC|O_DSYNC|O_NONBLOCK|O_CREAT|O_TRUNC\
1964 1975 |O_EXCL|O_NOCTTY|O_LARGEFILE|O_RSYNC|O_XATTR|O_NOFOLLOW|O_NOLINKS\
1965 1976 |O_CLOEXEC|O_DIRECTORY|FXATTRDIROPEN)
1966 1977
1967 1978 const char *
1968 1979 openarg(private_t *pri, int arg)
1969 1980 {
1970 1981 char *str = pri->code_buf;
1971 1982
1972 1983 if ((arg & ~(O_ACCMODE | ALL_O_FLAGS)) != 0)
1973 1984 return (NULL);
1974 1985
1975 1986 switch (arg & O_ACCMODE) {
1976 1987 default:
1977 1988 return (NULL);
1978 1989 case O_RDONLY:
1979 1990 (void) strcpy(str, "O_RDONLY");
1980 1991 break;
1981 1992 case O_WRONLY:
1982 1993 (void) strcpy(str, "O_WRONLY");
1983 1994 break;
1984 1995 case O_RDWR:
1985 1996 (void) strcpy(str, "O_RDWR");
1986 1997 break;
1987 1998 case O_SEARCH:
1988 1999 (void) strcpy(str, "O_SEARCH");
1989 2000 break;
1990 2001 case O_EXEC:
1991 2002 (void) strcpy(str, "O_EXEC");
1992 2003 break;
1993 2004 }
1994 2005
1995 2006 if (arg & O_NDELAY)
1996 2007 (void) strlcat(str, "|O_NDELAY", sizeof (pri->code_buf));
1997 2008 if (arg & O_APPEND)
1998 2009 (void) strlcat(str, "|O_APPEND", sizeof (pri->code_buf));
1999 2010 if (arg & O_SYNC)
2000 2011 (void) strlcat(str, "|O_SYNC", sizeof (pri->code_buf));
2001 2012 if (arg & O_DSYNC)
2002 2013 (void) strlcat(str, "|O_DSYNC", sizeof (pri->code_buf));
2003 2014 if (arg & O_NONBLOCK)
2004 2015 (void) strlcat(str, "|O_NONBLOCK", sizeof (pri->code_buf));
2005 2016 if (arg & O_CREAT)
2006 2017 (void) strlcat(str, "|O_CREAT", sizeof (pri->code_buf));
2007 2018 if (arg & O_TRUNC)
2008 2019 (void) strlcat(str, "|O_TRUNC", sizeof (pri->code_buf));
2009 2020 if (arg & O_EXCL)
2010 2021 (void) strlcat(str, "|O_EXCL", sizeof (pri->code_buf));
2011 2022 if (arg & O_NOCTTY)
2012 2023 (void) strlcat(str, "|O_NOCTTY", sizeof (pri->code_buf));
2013 2024 if (arg & O_LARGEFILE)
2014 2025 (void) strlcat(str, "|O_LARGEFILE", sizeof (pri->code_buf));
2015 2026 if (arg & O_RSYNC)
2016 2027 (void) strlcat(str, "|O_RSYNC", sizeof (pri->code_buf));
2017 2028 if (arg & O_XATTR)
2018 2029 (void) strlcat(str, "|O_XATTR", sizeof (pri->code_buf));
2019 2030 if (arg & O_NOFOLLOW)
2020 2031 (void) strlcat(str, "|O_NOFOLLOW", sizeof (pri->code_buf));
2021 2032 if (arg & O_NOLINKS)
2022 2033 (void) strlcat(str, "|O_NOLINKS", sizeof (pri->code_buf));
2023 2034 if (arg & O_CLOEXEC)
2024 2035 (void) strlcat(str, "|O_CLOEXEC", sizeof (pri->code_buf));
2025 2036 if (arg & O_DIRECTORY)
2026 2037 (void) strlcat(str, "|O_DIRECTORY", sizeof (pri->code_buf));
2027 2038 if (arg & FXATTRDIROPEN)
2028 2039 (void) strlcat(str, "|FXATTRDIROPEN", sizeof (pri->code_buf));
2029 2040
2030 2041 return ((const char *)str);
2031 2042 }
2032 2043
2033 2044 const char *
2034 2045 whencearg(int arg)
2035 2046 {
2036 2047 const char *str = NULL;
2037 2048
2038 2049 switch (arg) {
2039 2050 case SEEK_SET: str = "SEEK_SET"; break;
2040 2051 case SEEK_CUR: str = "SEEK_CUR"; break;
2041 2052 case SEEK_END: str = "SEEK_END"; break;
2042 2053 case SEEK_DATA: str = "SEEK_DATA"; break;
2043 2054 case SEEK_HOLE: str = "SEEK_HOLE"; break;
2044 2055 }
2045 2056
2046 2057 return (str);
2047 2058 }
2048 2059
2049 2060 #define IPC_FLAGS (IPC_ALLOC|IPC_CREAT|IPC_EXCL|IPC_NOWAIT)
2050 2061
2051 2062 char *
2052 2063 ipcflags(private_t *pri, int arg)
2053 2064 {
2054 2065 char *str = pri->code_buf;
2055 2066
2056 2067 if (arg & 0777)
2057 2068 (void) sprintf(str, "0%.3o", arg&0777);
2058 2069 else
2059 2070 *str = '\0';
2060 2071
2061 2072 if (arg & IPC_ALLOC)
2062 2073 (void) strcat(str, "|IPC_ALLOC");
2063 2074 if (arg & IPC_CREAT)
2064 2075 (void) strcat(str, "|IPC_CREAT");
2065 2076 if (arg & IPC_EXCL)
2066 2077 (void) strcat(str, "|IPC_EXCL");
2067 2078 if (arg & IPC_NOWAIT)
2068 2079 (void) strcat(str, "|IPC_NOWAIT");
2069 2080
2070 2081 return (str);
2071 2082 }
2072 2083
2073 2084 const char *
2074 2085 msgflags(private_t *pri, int arg)
2075 2086 {
2076 2087 char *str;
2077 2088
2078 2089 if (arg == 0 || (arg & ~(IPC_FLAGS|MSG_NOERROR|0777)) != 0)
2079 2090 return ((char *)NULL);
2080 2091
2081 2092 str = ipcflags(pri, arg);
2082 2093
2083 2094 if (arg & MSG_NOERROR)
2084 2095 (void) strcat(str, "|MSG_NOERROR");
2085 2096
2086 2097 if (*str == '|')
2087 2098 str++;
2088 2099 return ((const char *)str);
2089 2100 }
2090 2101
2091 2102 const char *
2092 2103 semflags(private_t *pri, int arg)
2093 2104 {
2094 2105 char *str;
2095 2106
2096 2107 if (arg == 0 || (arg & ~(IPC_FLAGS|SEM_UNDO|0777)) != 0)
2097 2108 return ((char *)NULL);
2098 2109
2099 2110 str = ipcflags(pri, arg);
2100 2111
2101 2112 if (arg & SEM_UNDO)
2102 2113 (void) strcat(str, "|SEM_UNDO");
2103 2114
2104 2115 if (*str == '|')
2105 2116 str++;
2106 2117 return ((const char *)str);
2107 2118 }
2108 2119
2109 2120 const char *
2110 2121 shmflags(private_t *pri, int arg)
2111 2122 {
2112 2123 char *str;
2113 2124
2114 2125 if (arg == 0 || (arg & ~(IPC_FLAGS|SHM_RDONLY|SHM_RND|0777)) != 0)
2115 2126 return ((char *)NULL);
2116 2127
2117 2128 str = ipcflags(pri, arg);
2118 2129
2119 2130 if (arg & SHM_RDONLY)
2120 2131 (void) strcat(str, "|SHM_RDONLY");
2121 2132 if (arg & SHM_RND)
2122 2133 (void) strcat(str, "|SHM_RND");
2123 2134
2124 2135 if (*str == '|')
2125 2136 str++;
2126 2137 return ((const char *)str);
2127 2138 }
2128 2139
2129 2140 #define MSGCMDMIN 0
2130 2141 #define MSGCMDMAX IPC_STAT64
2131 2142 const char *const MSGCMDname[MSGCMDMAX+1] = {
2132 2143 NULL, NULL, NULL, NULL, NULL,
2133 2144 NULL, NULL, NULL, NULL, NULL,
2134 2145 "IPC_RMID", /* 10 */
2135 2146 "IPC_SET", /* 11 */
2136 2147 "IPC_STAT", /* 12 */
2137 2148 "IPC_SET64", /* 13 */
2138 2149 "IPC_STAT64", /* 14 */
2139 2150 };
2140 2151
2141 2152 #define SEMCMDMIN 0
2142 2153 #define SEMCMDMAX IPC_STAT64
2143 2154 const char *const SEMCMDname[SEMCMDMAX+1] = {
2144 2155 NULL, /* 0 */
2145 2156 NULL, /* 1 */
2146 2157 NULL, /* 2 */
2147 2158 "GETNCNT", /* 3 */
2148 2159 "GETPID", /* 4 */
2149 2160 "GETVAL", /* 5 */
2150 2161 "GETALL", /* 6 */
2151 2162 "GETZCNT", /* 7 */
2152 2163 "SETVAL", /* 8 */
2153 2164 "SETALL", /* 9 */
2154 2165 "IPC_RMID", /* 10 */
2155 2166 "IPC_SET", /* 11 */
2156 2167 "IPC_STAT", /* 12 */
2157 2168 "IPC_SET64", /* 13 */
2158 2169 "IPC_STAT64", /* 14 */
2159 2170 };
2160 2171
2161 2172 #define SHMCMDMIN 0
2162 2173 #define SHMCMDMAX IPC_STAT64
2163 2174 const char *const SHMCMDname[SHMCMDMAX+1] = {
2164 2175 NULL, /* 0 */
2165 2176 NULL, /* 1 */
2166 2177 NULL, /* 2 */
2167 2178 "SHM_LOCK", /* 3 */
2168 2179 "SHM_UNLOCK", /* 4 */
2169 2180 NULL, NULL, NULL, NULL, NULL, /* 5 NULLs */
2170 2181 "IPC_RMID", /* 10 */
2171 2182 "IPC_SET", /* 11 */
2172 2183 "IPC_STAT", /* 12 */
2173 2184 "IPC_SET64", /* 13 */
2174 2185 "IPC_STAT64", /* 14 */
2175 2186 };
2176 2187
2177 2188 const char *
2178 2189 msgcmd(int arg)
2179 2190 {
2180 2191 const char *str = NULL;
2181 2192
2182 2193 if (arg >= MSGCMDMIN && arg <= MSGCMDMAX)
2183 2194 str = MSGCMDname[arg-MSGCMDMIN];
2184 2195 return (str);
2185 2196 }
2186 2197
2187 2198 const char *
2188 2199 semcmd(int arg)
2189 2200 {
2190 2201 const char *str = NULL;
2191 2202
2192 2203 if (arg >= SEMCMDMIN && arg <= SEMCMDMAX)
2193 2204 str = SEMCMDname[arg-SEMCMDMIN];
2194 2205 return (str);
2195 2206 }
2196 2207
2197 2208 const char *
2198 2209 shmcmd(int arg)
2199 2210 {
2200 2211 const char *str = NULL;
2201 2212
2202 2213 if (arg >= SHMCMDMIN && arg <= SHMCMDMAX)
2203 2214 str = SHMCMDname[arg-SHMCMDMIN];
2204 2215 return (str);
2205 2216 }
2206 2217
2207 2218 const char *
2208 2219 strrdopt(int arg) /* streams read option (I_SRDOPT I_GRDOPT) */
2209 2220 {
2210 2221 const char *str = NULL;
2211 2222
2212 2223 switch (arg) {
2213 2224 case RNORM: str = "RNORM"; break;
2214 2225 case RMSGD: str = "RMSGD"; break;
2215 2226 case RMSGN: str = "RMSGN"; break;
2216 2227 }
2217 2228
2218 2229 return (str);
2219 2230 }
2220 2231
2221 2232 /* bit map of streams events (I_SETSIG & I_GETSIG) */
2222 2233 const char *
2223 2234 strevents(private_t *pri, int arg)
2224 2235 {
2225 2236 char *str = pri->code_buf;
2226 2237
2227 2238 if (arg & ~(S_INPUT|S_HIPRI|S_OUTPUT|S_MSG|S_ERROR|S_HANGUP))
2228 2239 return ((char *)NULL);
2229 2240
2230 2241 *str = '\0';
2231 2242 if (arg & S_INPUT)
2232 2243 (void) strcat(str, "|S_INPUT");
2233 2244 if (arg & S_HIPRI)
2234 2245 (void) strcat(str, "|S_HIPRI");
2235 2246 if (arg & S_OUTPUT)
2236 2247 (void) strcat(str, "|S_OUTPUT");
2237 2248 if (arg & S_MSG)
2238 2249 (void) strcat(str, "|S_MSG");
2239 2250 if (arg & S_ERROR)
2240 2251 (void) strcat(str, "|S_ERROR");
2241 2252 if (arg & S_HANGUP)
2242 2253 (void) strcat(str, "|S_HANGUP");
2243 2254
2244 2255 return ((const char *)(str+1));
2245 2256 }
2246 2257
2247 2258 const char *
2248 2259 tiocflush(private_t *pri, int arg) /* bit map passsed by TIOCFLUSH */
2249 2260 {
2250 2261 char *str = pri->code_buf;
2251 2262
2252 2263 if (arg & ~(FREAD|FWRITE))
2253 2264 return ((char *)NULL);
2254 2265
2255 2266 *str = '\0';
2256 2267 if (arg & FREAD)
2257 2268 (void) strcat(str, "|FREAD");
2258 2269 if (arg & FWRITE)
2259 2270 (void) strcat(str, "|FWRITE");
2260 2271
2261 2272 return ((const char *)(str+1));
2262 2273 }
2263 2274
2264 2275 const char *
2265 2276 strflush(int arg) /* streams flush option (I_FLUSH) */
2266 2277 {
2267 2278 const char *str = NULL;
2268 2279
2269 2280 switch (arg) {
2270 2281 case FLUSHR: str = "FLUSHR"; break;
2271 2282 case FLUSHW: str = "FLUSHW"; break;
2272 2283 case FLUSHRW: str = "FLUSHRW"; break;
2273 2284 }
2274 2285
2275 2286 return (str);
2276 2287 }
2277 2288
2278 2289 #define ALL_MOUNT_FLAGS (MS_RDONLY|MS_FSS|MS_DATA|MS_NOSUID|MS_REMOUNT| \
2279 2290 MS_NOTRUNC|MS_OVERLAY|MS_OPTIONSTR|MS_GLOBAL|MS_FORCE|MS_NOMNTTAB)
2280 2291
2281 2292 const char *
2282 2293 mountflags(private_t *pri, int arg) /* bit map of mount syscall flags */
2283 2294 {
2284 2295 char *str = pri->code_buf;
2285 2296 size_t used = 0;
2286 2297
2287 2298 if (arg & ~ALL_MOUNT_FLAGS)
2288 2299 return ((char *)NULL);
2289 2300
2290 2301 *str = '\0';
2291 2302 if (arg & MS_RDONLY)
2292 2303 used = strlcat(str, "|MS_RDONLY", sizeof (pri->code_buf));
2293 2304 if (arg & MS_FSS)
2294 2305 used = strlcat(str, "|MS_FSS", sizeof (pri->code_buf));
2295 2306 if (arg & MS_DATA)
2296 2307 used = strlcat(str, "|MS_DATA", sizeof (pri->code_buf));
2297 2308 if (arg & MS_NOSUID)
2298 2309 used = strlcat(str, "|MS_NOSUID", sizeof (pri->code_buf));
2299 2310 if (arg & MS_REMOUNT)
2300 2311 used = strlcat(str, "|MS_REMOUNT", sizeof (pri->code_buf));
2301 2312 if (arg & MS_NOTRUNC)
2302 2313 used = strlcat(str, "|MS_NOTRUNC", sizeof (pri->code_buf));
2303 2314 if (arg & MS_OVERLAY)
2304 2315 used = strlcat(str, "|MS_OVERLAY", sizeof (pri->code_buf));
2305 2316 if (arg & MS_OPTIONSTR)
2306 2317 used = strlcat(str, "|MS_OPTIONSTR", sizeof (pri->code_buf));
2307 2318 if (arg & MS_GLOBAL)
2308 2319 used = strlcat(str, "|MS_GLOBAL", sizeof (pri->code_buf));
2309 2320 if (arg & MS_FORCE)
2310 2321 used = strlcat(str, "|MS_FORCE", sizeof (pri->code_buf));
2311 2322 if (arg & MS_NOMNTTAB)
2312 2323 used = strlcat(str, "|MS_NOMNTTAB", sizeof (pri->code_buf));
2313 2324
2314 2325 if (used == 0 || used >= sizeof (pri->code_buf))
2315 2326 return ((char *)NULL); /* use prt_hex() */
2316 2327
2317 2328 return ((const char *)(str+1));
2318 2329 }
2319 2330
2320 2331 const char *
2321 2332 svfsflags(private_t *pri, ulong_t arg) /* bit map of statvfs syscall flags */
2322 2333 {
2323 2334 char *str = pri->code_buf;
2324 2335
2325 2336 if (arg & ~(ST_RDONLY|ST_NOSUID|ST_NOTRUNC)) {
2326 2337 (void) sprintf(str, "0x%lx", arg);
2327 2338 return (str);
2328 2339 }
2329 2340 *str = '\0';
2330 2341 if (arg & ST_RDONLY)
2331 2342 (void) strcat(str, "|ST_RDONLY");
2332 2343 if (arg & ST_NOSUID)
2333 2344 (void) strcat(str, "|ST_NOSUID");
2334 2345 if (arg & ST_NOTRUNC)
2335 2346 (void) strcat(str, "|ST_NOTRUNC");
2336 2347 if (*str == '\0')
2337 2348 (void) strcat(str, "|0");
2338 2349 return ((const char *)(str+1));
2339 2350 }
2340 2351
2341 2352 const char *
2342 2353 fuiname(int arg) /* fusers() input argument */
2343 2354 {
2344 2355 const char *str = NULL;
2345 2356
2346 2357 switch (arg) {
2347 2358 case F_FILE_ONLY: str = "F_FILE_ONLY"; break;
2348 2359 case F_CONTAINED: str = "F_CONTAINED"; break;
2349 2360 }
2350 2361
2351 2362 return (str);
2352 2363 }
2353 2364
2354 2365 const char *
2355 2366 fuflags(private_t *pri, int arg) /* fusers() output flags */
2356 2367 {
2357 2368 char *str = pri->code_buf;
2358 2369
2359 2370 if (arg & ~(F_CDIR|F_RDIR|F_TEXT|F_MAP|F_OPEN|F_TRACE|F_TTY)) {
2360 2371 (void) sprintf(str, "0x%x", arg);
2361 2372 return (str);
2362 2373 }
2363 2374 *str = '\0';
2364 2375 if (arg & F_CDIR)
2365 2376 (void) strcat(str, "|F_CDIR");
2366 2377 if (arg & F_RDIR)
2367 2378 (void) strcat(str, "|F_RDIR");
2368 2379 if (arg & F_TEXT)
2369 2380 (void) strcat(str, "|F_TEXT");
2370 2381 if (arg & F_MAP)
2371 2382 (void) strcat(str, "|F_MAP");
2372 2383 if (arg & F_OPEN)
2373 2384 (void) strcat(str, "|F_OPEN");
2374 2385 if (arg & F_TRACE)
2375 2386 (void) strcat(str, "|F_TRACE");
2376 2387 if (arg & F_TTY)
2377 2388 (void) strcat(str, "|F_TTY");
2378 2389 if (*str == '\0')
2379 2390 (void) strcat(str, "|0");
2380 2391 return ((const char *)(str+1));
2381 2392 }
2382 2393
2383 2394
2384 2395 const char *
2385 2396 ipprotos(int arg) /* IP protocols cf. netinet/in.h */
2386 2397 {
2387 2398 switch (arg) {
2388 2399 case IPPROTO_IP: return ("IPPROTO_IP");
2389 2400 case IPPROTO_ICMP: return ("IPPROTO_ICMP");
2390 2401 case IPPROTO_IGMP: return ("IPPROTO_IGMP");
2391 2402 case IPPROTO_GGP: return ("IPPROTO_GGP");
2392 2403 case IPPROTO_ENCAP: return ("IPPROTO_ENCAP");
2393 2404 case IPPROTO_TCP: return ("IPPROTO_TCP");
2394 2405 case IPPROTO_EGP: return ("IPPROTO_EGP");
2395 2406 case IPPROTO_PUP: return ("IPPROTO_PUP");
2396 2407 case IPPROTO_UDP: return ("IPPROTO_UDP");
2397 2408 case IPPROTO_IDP: return ("IPPROTO_IDP");
2398 2409 case IPPROTO_IPV6: return ("IPPROTO_IPV6");
2399 2410 case IPPROTO_ROUTING: return ("IPPROTO_ROUTING");
2400 2411 case IPPROTO_FRAGMENT: return ("IPPROTO_FRAGMENT");
2401 2412 case IPPROTO_RSVP: return ("IPPROTO_RSVP");
2402 2413 case IPPROTO_ESP: return ("IPPROTO_ESP");
2403 2414 case IPPROTO_AH: return ("IPPROTO_AH");
2404 2415 case IPPROTO_ICMPV6: return ("IPPROTO_ICMPV6");
2405 2416 case IPPROTO_NONE: return ("IPPROTO_NONE");
2406 2417 case IPPROTO_DSTOPTS: return ("IPPROTO_DSTOPTS");
2407 2418 case IPPROTO_HELLO: return ("IPPROTO_HELLO");
2408 2419 case IPPROTO_ND: return ("IPPROTO_ND");
2409 2420 case IPPROTO_EON: return ("IPPROTO_EON");
2410 2421 case IPPROTO_PIM: return ("IPPROTO_PIM");
2411 2422 case IPPROTO_SCTP: return ("IPPROTO_SCTP");
2412 2423 case IPPROTO_RAW: return ("IPPROTO_RAW");
2413 2424 default: return (NULL);
2414 2425 }
2415 2426 }
↓ open down ↓ |
1267 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX