xref: /titanic_51/usr/src/man/man1m/devattr.1m (revision 299625c6492013aa7bd163862f0d181854f69b3c)
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]
DEVATTR 1M "Jul 5, 1990"
NAME
devattr - display device attributes
SYNOPSIS

devattr [-v] device [attribute]...
DESCRIPTION

devattr displays the values for a device's attributes. The display can be presented in two formats. Used without the -v option, only the attribute values are shown. Used with the -v option, the attributes are shown in an attribute=value format. When no attributes are given on the command line, all attributes for the specified device are displayed in alphabetical order by attribute name. If attributes are given on the command line, only those attributes are shown, displayed in command line order.

OPTIONS

The following options are supported: -v

Specifies verbose format. Attribute values are displayed in an attribute=value format.

OPERANDS

The following operands are supported: attribute

Defines which attribute, or attributes, should be shown. Default is to show all attributes for a device. See the putdev(1M) manual page for a complete listing and description of available attributes.

device

Defines the device whose attributes should be displayed. Can be the pathname of the device or the device alias.

EXIT STATUS

The following exit values are returned: 0

successful completion.

1

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

2

Device table could not be opened for reading.

3

Requested device could not be found in the device table.

4

Requested attribute was not defined for the specified device.

FILES

/etc/device.tab

SEE ALSO

getdev(1M), putdev(1M), attributes(5)