2 .\" Copyright 2008 Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DEALLOCATE 1 "Mar 6, 2017"
8 deallocate \- device deallocation
12 \fBdeallocate\fR [\fB-s\fR] [\fB-w\fR] [\fB-F\fR] [\fB-z\fR \fIzonename\fR]
13 [\fB-c\fR \fIdev-class\fR | \fB-g\fR \fIdev-type\fR | \fIdevice\fR]
18 \fBdeallocate\fR [\fB-s\fR] [\fB-w\fR] [\fB-F\fR] [\fB-z\fR \fIzonename\fR] \fB-I\fR
23 The \fBdeallocate\fR command frees an allocated device. It resets the ownership
24 and permissions on all device special files associated with the device,
25 disabling access to that device. \fBdeallocate\fR runs the device cleaning
26 program for that device as specified in \fBdevice_allocate\fR(4).
29 The default \fBdeallocate\fR operation deallocates devices allocated to the
33 The following options are supported:
37 \fB\fB-c\fR \fIdev-class\fR\fR
40 Deallocates all devices of the specified device class.
46 \fB\fB-F\fR \fIdevice\fR\fR
49 Forces deallocation of the device associated with the file specified by
50 \fIdevice\fR. Only a user with the \fBsolaris.device.revoke\fR authorization is
51 permitted to use this option.
60 Forces deallocation of all allocatable devices. Only a user with the
61 \fBsolaris.device.revoke\fR authorization is permitted to use this option. This
62 option should only be used at system initialization.
71 Silent. Suppresses any diagnostic output.
76 The following options are supported when the system is configured with Trusted
81 \fB\fB-g\fR \fIdev-type\fR\fR
84 Deallocates a device of device type matching \fIdev-type\fR.
93 Runs the device cleaning program in a windowing environment. If a windowing
94 version of the program exists, it is used. Otherwise, the standard version is
95 run in a terminal window.
101 \fB\fB-z\fR \fIzonename\fR\fR
104 Deallocates device from the zone specified by \fIzonename\fR.
109 The following operands are supported:
116 Deallocates the specified \fIdevice\fR.
121 The following exit values are returned:
128 Successful completion.
137 No entry for the specified device.
143 \fB\fIother value\fR\fR
151 \fB/etc/security/device_allocate\fR
154 \fB/etc/security/device_maps\fR
157 \fB/etc/security/dev/*\fR
160 \fB/etc/security/lib/*\fR
163 See \fBattributes\fR(5) for descriptions of the following attributes:
171 ATTRIBUTE TYPE ATTRIBUTE VALUE
173 Interface Stability See below.
178 The invocation is Uncommitted. The options are Uncommitted. The output is
182 \fBallocate\fR(1), \fBlist_devices\fR(1), \fBdminfo\fR(1M),
183 \fBmkdevalloc\fR(1M), \fBmkdevmaps\fR(1M), \fBdevice_allocate\fR(4),
184 \fBdevice_maps\fR(4), \fBattributes\fR(5)
187 On systems configured with Trusted Extensions, the functionality is enabled by
191 \fB/etc/security/dev\fR, \fBmkdevalloc\fR(1M), and \fBmkdevmaps\fR(1M) might
192 not be supported in a future release of the Solaris Operating Environment.