NAME

Solaris::DeviceTree::OBP - Manipulation of OBP pathes

SYNOPSIS

use Solaris::DeviceTree::OBP( :DEFAULT );
my $tree = new Solaris::DeviceTree;
$bootpath = $tree->find_prop( devfs_path => '/chosen', prom_prop_name => 'bootpath' );
$resolved_path = resolve_path( aliases => $tree->aliases, $bootpath->data( type => 'string' ) );

DESCRIPTION

The Solaris::DeviceTree::OBP module implements functions for manipulating OBP pathes according to "IEEE 1275".

EXPORT

The following functions are exported on demand:

$p = resolve_path( aliases => $aliases, path => "/path" );

This functions transforms the specified path in an alias-free path using the path resolution procedure described in 1275.pdf - 4.3.1 Path resolution procedure according to the specified reference to an alias mapping.

EXAMPLES

In the following example the resolved physical pathname of the device last booted from is printed:

use Solaris::DeviceTree::OBP( :DEFAULT );
my $tree = new Solaris::DeviceTree;
$bootpath = $tree->find_prop( devfs_path => '/chosen', prom_prop_name => 'bootpath' );
$resolved_path = resolve_path( aliases => $tree->aliases, $bootpath->data( type => 'string' ) );
print "Last boot from $resolved_path\n";

AUTHOR

Dagobert Michelsen, <dam@baltic-online.de>

SEE ALSO

OPEN FIRMWARE HOME PAGE
L<http://playground.sun.com/1275/home.html>

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 147:

=over without closing =back

Around line 155:

=cut found outside a pod block. Skipping to next block.