view usr/src/man/man1m/devfree.1m @ 13659:57451298f940

1469 ttyc/ttyd should be an allowed console device Reviewed by: Milan Jurik <milan.jurik@xylab.cz> Reviewed by: Alexander Eremin <alexander.r.eremin@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
author Gary Mills <gary_mills@fastmail.fm>
date Thu, 05 Apr 2012 08:47:21 -0500
parents 5b2854ecc12d
children
line wrap: on
line source

'\" te
.\"  Copyright 1989 AT&T  Copyright (c) 1997 Sun Microsystems, Inc.  All Rights Reserved.
.\" 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.
.\" 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.
.\" 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]
.TH DEVFREE 1M "Jul 5, 1990"
.SH NAME
devfree \- release devices from exclusive use
.SH SYNOPSIS
.LP
.nf
\fBdevfree\fR \fIkey\fR [\fIdevice\fR]...
.fi

.SH DESCRIPTION
.sp
.LP
\fBdevfree\fR releases devices from exclusive use. Exclusive use is requested
with the command \fBdevreserv\fR.
.sp
.LP
When  \fBdevfree\fR is invoked with only the \fIkey\fR argument, it releases
all devices that have been reserved for that  \fIkey\fR. When called with
\fIkey\fR and  \fIdevice\fR arguments,  \fBdevfree\fR releases  the specified
devices that have been reserved with that  \fIkey\fR.
.SH OPERANDS
.sp
.LP
The following operands are supported:
.sp
.ne 2
.na
\fB\fIdevice\fR\fR
.ad
.RS 10n
Defines device that this command will release from exclusive use. \fIdevice\fR
can be the pathname of the device or the device alias.
.RE

.sp
.ne 2
.na
\fB\fIkey\fR\fR
.ad
.RS 10n
Designates the unique key on which the device was reserved.
.RE

.SH EXIT STATUS
.sp
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 5n
Successful completion.
.RE

.sp
.ne 2
.na
\fB\fB1\fR\fR
.ad
.RS 5n
Command syntax was incorrect, an invalid option was used, or an internal error
occurred.
.RE

.sp
.ne 2
.na
\fB\fB2\fR\fR
.ad
.RS 5n
Device table or device reservation table could not be opened for reading.
.RE

.sp
.ne 2
.na
\fB\fB3\fR\fR
.ad
.RS 5n
Reservation release could not be completely fulfilled because one or more of
the devices was not reserved or was not reserved on the specified key.
.RE

.SH FILES
.sp
.ne 2
.na
\fB\fB/etc/device.tab\fR\fR
.ad
.RS 19n

.RE

.sp
.ne 2
.na
\fB\fB/etc/devlkfile\fR\fR
.ad
.RS 19n

.RE

.SH SEE ALSO
.sp
.LP
\fBdevreserv\fR(1M), \fBattributes\fR(5)
.SH NOTES
.sp
.LP
The commands \fBdevreserv\fR and \fBdevfree\fR are used to manage the
availability of devices on a system. These commands do not place any
constraints on the access to the device. They serve only as a centralized
bookkeeping point for those who wish to use them. Processes that do not use
\fBdevreserv\fR may concurrently use a device with a process that has reserved
that device.