Solaris::DeviceTree::Libdevinfo::MinorNode - Minor node of the Solaris devicetree
use Solaris::DeviceTree::Libdevinfo; $tree = new Solaris::DeviceTree::Libdevinfo; @disks = $tree->find_nodes( type => 'disk' ); @minor = @disks->minor_nodes;
This class implements a minor node in the libdevinfo devicetree. This is an internal class to Solaris::DeviceTree::Libdevinfo. There should be no need to generate instances of this class in an application explicitly. Instances are generated only from Solaris::DeviceTree::Libdevinfo::minor_nodes().
Solaris::DeviceTree::Libdevinfo
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
Return the name of the minor node. This is used e.g. as suffix of the device filename. For disks this is something like ':a' or ':a,raw'.
Return the complete physical path including the minor node
Returns the major and minor device number as a pair for the node. The major numbers should be the same for all minor nodes return by a Solaris::DeviceTree::Libdevinfo node.
Returns the nodetype of the minor node. Legal return values can be taken from <sys/sunddi.h>. With this call you can differentiate between pseudo nodes, displays and stuff.
Returns the type of the minor node. Returns raw for a raw device block for a block device
Returns true if the minor node is a raw device
Returns true if the minor node is a block device
Returns the associated Solaris::DevinfoTree node. One Solaris::DevinfoTree node can have multiple minor nodes.
Copyright 1999-2003 Dagobert Michelsen.
L<Solaris::DeviceTree::Libdevinfo>
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Solaris::DeviceTree, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Solaris::DeviceTree
CPAN shell
perl -MCPAN -e shell install Solaris::DeviceTree
For more information on module installation, please visit the detailed CPAN module installation guide.