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