Module hdd::device

source ·
Expand description

Thin wrapper for platform-specific device handle.

This module (and struct it provides) allows opening (Device::open(&path)) and interacting with (via ata::ATADevice/scsi::SCSIDevice) devices in a cross-platform manner, as different operating systems provide different device handles to execute commands against (i.e. regular file descriptor on Linux, struct cam_device * on FreeBSD).

Example

See parent module.

Re-exports

pub use self::linux::*;

Modules