1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/*!
Thin wrapper for platform-specific device handle.

This module (and struct it provides) allows opening (`Device::open(&path)`) and interacting with (via [`ata::ATADevice`](../ata/struct.ATADevice.html)/[`scsi::SCSIDevice`](../scsi/struct.SCSIDevice.html)) 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](../index.html).
*/

#[cfg(target_os = "linux")]
pub mod linux;
#[cfg(target_os = "linux")]
pub use self::linux::*;

#[cfg(target_os = "freebsd")]
pub mod freebsd;
#[cfg(target_os = "freebsd")]
pub use self::freebsd::*;