6324 Add an `ndp' tool for manipulating the neighbors table
[illumos-gate.git] / usr / src / man / man1m / devfree.1m
blob2e143e13c375ee8dd2ab34a02e12de4cbabc442d
1 '\" te
2 .\"  Copyright 1989 AT&T  Copyright (c) 1997 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 DEVFREE 1M "Jul 5, 1990"
7 .SH NAME
8 devfree \- release devices from exclusive use
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBdevfree\fR \fIkey\fR [\fIdevice\fR]...
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 \fBdevfree\fR releases devices from exclusive use. Exclusive use is requested
19 with the command \fBdevreserv\fR.
20 .sp
21 .LP
22 When  \fBdevfree\fR is invoked with only the \fIkey\fR argument, it releases
23 all devices that have been reserved for that  \fIkey\fR. When called with
24 \fIkey\fR and  \fIdevice\fR arguments,  \fBdevfree\fR releases  the specified
25 devices that have been reserved with that  \fIkey\fR.
26 .SH OPERANDS
27 .sp
28 .LP
29 The following operands are supported:
30 .sp
31 .ne 2
32 .na
33 \fB\fIdevice\fR\fR
34 .ad
35 .RS 10n
36 Defines device that this command will release from exclusive use. \fIdevice\fR
37 can be the pathname of the device or the device alias.
38 .RE
40 .sp
41 .ne 2
42 .na
43 \fB\fIkey\fR\fR
44 .ad
45 .RS 10n
46 Designates the unique key on which the device was reserved.
47 .RE
49 .SH EXIT STATUS
50 .sp
51 .LP
52 The following exit values are returned:
53 .sp
54 .ne 2
55 .na
56 \fB\fB0\fR\fR
57 .ad
58 .RS 5n
59 Successful completion.
60 .RE
62 .sp
63 .ne 2
64 .na
65 \fB\fB1\fR\fR
66 .ad
67 .RS 5n
68 Command syntax was incorrect, an invalid option was used, or an internal error
69 occurred.
70 .RE
72 .sp
73 .ne 2
74 .na
75 \fB\fB2\fR\fR
76 .ad
77 .RS 5n
78 Device table or device reservation table could not be opened for reading.
79 .RE
81 .sp
82 .ne 2
83 .na
84 \fB\fB3\fR\fR
85 .ad
86 .RS 5n
87 Reservation release could not be completely fulfilled because one or more of
88 the devices was not reserved or was not reserved on the specified key.
89 .RE
91 .SH FILES
92 .sp
93 .ne 2
94 .na
95 \fB\fB/etc/device.tab\fR\fR
96 .ad
97 .RS 19n
99 .RE
102 .ne 2
104 \fB\fB/etc/devlkfile\fR\fR
106 .RS 19n
110 .SH SEE ALSO
113 \fBdevreserv\fR(1M), \fBattributes\fR(5)
114 .SH NOTES
117 The commands \fBdevreserv\fR and \fBdevfree\fR are used to manage the
118 availability of devices on a system. These commands do not place any
119 constraints on the access to the device. They serve only as a centralized
120 bookkeeping point for those who wish to use them. Processes that do not use
121 \fBdevreserv\fR may concurrently use a device with a process that has reserved
122 that device.