Solaris::DeviceTree::MinorNode - Generic minor node of the devicetree
use Solaris::DeviceTree; $tree = new Solaris::DeviceTree( uses => qw( libdevinfo filesystem ) ); @disks = $tree->find_nodes( type => 'disk' ); @minor = @disks->minor_nodes;
This class implements generic minor nodes which are generated from Solaris::DeviceTree. The data from all configured data sources containing minor nodes are unified through this class. This is an internal class to Solaris::DeviceTree. There should be no need to generate instances of this class in an application explicitly. Instances are generated only from Solaris::DeviceTree::minor_nodes().
Solaris::DeviceTree
Solaris::DeviceTree::minor_nodes()
The following methods are available:
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. Because we can't find that out by looking at the filesystem we always return 'undef'.
Returns the type of the minor node. Returns $S_IFCHR for a raw device $S_IFBLK for a block device Both scalars are exported by default.
Returns true if the minor node is a raw device
Returns true if the minor node is a block device
Returns the associated Solaris::DeviceTree node. One DeviceTree node can (and usually does) have multiple minor nodes.
DeviceTree
Returns the slice number associated with this minor node if it represents a block device.
Copyright 1999-2003 Dagobert Michelsen.
L<Solaris::DeviceTree::Filesystem>
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.