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