The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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:

    $resolved_path = 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

http://playground.sun.com/1275/home.html

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 38:

You can't have =items (as at line 83) unless the first thing after the =over is an =item

Around line 130:

You forgot a '=back' before '=head1'

Around line 149:

=over without closing =back

Around line 157:

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