xref: /illumos-gate/usr/src/man/man8/devfree.8 (revision 1a2d662a91cee3bf82f41cd47c7ae6f3825d9db2)
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]
DEVFREE 8 "Jul 5, 1990"
NAME
devfree - release devices from exclusive use
SYNOPSIS

devfree key [device]...
DESCRIPTION

devfree releases devices from exclusive use. Exclusive use is requested with the command devreserv.

When devfree is invoked with only the key argument, it releases all devices that have been reserved for that key. When called with key and device arguments, devfree releases the specified devices that have been reserved with that key.

OPERANDS

The following operands are supported: device

Defines device that this command will release from exclusive use. device can be the pathname of the device or the device alias.

key

Designates the unique key on which the device was reserved.

EXIT STATUS

The following exit values are returned: 0

Successful completion.

1

Command syntax was incorrect, an invalid option was used, or an internal error occurred.

2

Device table or device reservation table could not be opened for reading.

3

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.

FILES
/etc/device.tab

/etc/devlkfile

SEE ALSO

attributes (7), devreserv (8)

NOTES

The commands devreserv and devfree 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 devreserv may concurrently use a device with a process that has reserved that device.