NAME
Device::Moose::SCSI - Reimplementation of Device::SCSI with Moose.
SYNOPSIS
use Device::Moose::SCSI;
my $device = Device::Moose::SCSI->new(device => "/dev/sg0");
# INQUIRY
my $inquiry = $device->inquiry();
# TESTUNITREADY
my ($result, $sense) = $device->execute (
command => pack("C x5", 0x00)
, wanted => 32
);
DESCRIPTION
Device::Moose::SCSI
reimplementation of Device::SCSI using Moose.
See Device::SCSI for detail information.
Refer to http://www.tldp.org/HOWTO/archived/SCSI-Programming-HOWTO if you need to know how to SCSI programming with Linux.
ATTRIBUTES
- fh
- name
METHODS
- enumerate
- open
- close
- execute
- inquiry
Lifecycle methods
- BUILD
AUTHOR
Ji-Hyeon Gim <potatogim@potatogim.net>
CONTRIBUTORS
COPYRIGHT AND LICENSE
Copyright(c) 2015, by Ji-Hyeon Gim <potatogim@potatogim.net>
This is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself at:
http://www.perlfoundation.org/artistic_license_2_0
You may obtain a copy of the full license at:
http://www.perl.com/perl/misc/Artistic.html