NAME
Solaris::DeviceTree::Libdevinfo::Property - Property of a node of the Solaris devicetree
SYNOPSIS
use Solaris::DeviceTree::Libdevinfo;
$tree = new Solaris::DeviceTree::Libdevinfo;
@disks = $tree->find_nodes( type => 'disk' );
@props = @disks->properties;
DESCRIPTION
METHODS
The following methods are available:
$minor = new Solaris::DeviceTree::Libdevinfo::Property($minor_data, $devinfo_node);
The constructor takes a SWIG-pointer to the C data structure of a minor node di_minor_t
and a backreference to the Solaris::DeviceTree::Libdevinfo
object which generates this instance.
my $name = $prop->name
This method returns the name of the property.
my ($major, $minor) = $prop->devt
This method returns the devt-record of the property containing the major- and minor-number returned as list. If no devt-record is associated undef
is returned.
$type = $prop->type
This method returns the type of the property. Depending on the type the data of the property must be handled accordingly. Valid return types are:
boolean int string byte unknown undefined
my @data = $prop->data
This method returns the data associated with the property as list.
EXAMPLES
AUTHOR
Copyright 1999-2003 Dagobert Michelsen.
SEE ALSO
Solaris::DeviceTree::Libdevinfo, libdevinfo
, di_prop_bytes
.