xref: /titanic_50/usr/src/man/man1m/hal-get-property.1m (revision 694c35faa87b858ecdadfe4fc592615f4eefbb07)
te
Copyright (c) 2006, 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]
HAL-GET-PROPERTY 1M "Aug 18, 2006"
NAME
hal-get-property, hal-set-property - get and set HAL device properties
SYNOPSIS

hal-get-property --udi udi --key key [--help] [--verbose]
 [--version]

hal-set-property --udi udi --key key {--int value | --uint64 value
 | --string value | --bool value | --strlist-pre value
 | --strlist-post value | --strlist-rem value | --double value
 | --remove value} [--help] [--version]
DESCRIPTION

The Hardware Abstraction Layer (HAL) provides a view of the various hardware attached to a system. This view is updated dynamically as hardware configuration changes by means of hotplug or other mechanisms. HAL represents a piece of hardware as a device object. A device object is identified by a unique identifer and carries a set of key/value pairs, referred to as device properties. Some properties are derived from the actual hardware, some are merged from device information files (.fdi files), and some are related to the actual device configuration.

The hal-get-property and hal-set-property commands allow you to get and set properties of hardware that conforms to HAL specifications.

OPTIONS

The following options are supported: --udi udi

Unique device ID.

--key key

Key of the property to set.

--int

Set value to an integer. Accepts decimal or hexadecimal value prefixed with 0x or x.

--uint64

Set value to an integer. Accepts decimal or hexadecimal value prefixed with 0x or x.

--string value

Set value to a string.

--double value

Set value to a floating point number.

--boolean value

Set value to a boolean, that is, true or false

--strlist-pre value

Prepend a string to a list.

--strlist-post value

Append a string to a list.

--strlist-rem value

Remove a string from a list.

--remove value

Indicates that the property should be removed.

--version

Display version and exit.

--help

Display list of options and exit

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Interface Stability Volatile
SEE ALSO

hald(1M), attributes(5), hal(5)