Solaris::DeviceTree::Libdevinfo::Property - Property of a node of the Solaris devicetree
use Solaris::DeviceTree::Libdevinfo; $tree = new Solaris::DeviceTree::Libdevinfo; @disks = $tree->find_nodes( type => 'disk' ); @props = @disks->properties;
The following methods are available:
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.
di_minor_t
Solaris::DeviceTree::Libdevinfo
This method returns the name of the property.
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.
undef
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
This method returns the data associated with the property as list.
Copyright 1999-2003 Dagobert Michelsen.
Solaris::DeviceTree::Libdevinfo, libdevinfo, di_prop_bytes.
libdevinfo
di_prop_bytes
To install Solaris::DeviceTree::Libdevinfo::Impl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Solaris::DeviceTree::Libdevinfo::Impl
CPAN shell
perl -MCPAN -e shell install Solaris::DeviceTree::Libdevinfo::Impl
For more information on module installation, please visit the detailed CPAN module installation guide.