diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-11 11:55:25 -0700 |
---|---|---|
committer | Bryant Mairs <bryant@mai.rs> | 2017-07-19 07:19:26 -0700 |
commit | e3b18ceeb91190a41be320b20b931b80763304ac (patch) | |
tree | 22e3968149e154328c52dc74f1e9682a8312b6b7 | |
parent | 840a16a374e311af3f2137947a91e08311b0eb77 (diff) | |
download | nix-e3b18ceeb91190a41be320b20b931b80763304ac.zip |
Remove ioc_* functions
These are low-level functions that shouldn't be exposed
-rw-r--r-- | src/sys/ioctl/platform/linux.rs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/sys/ioctl/platform/linux.rs b/src/sys/ioctl/platform/linux.rs index 00a25e88..e3a130a9 100644 --- a/src/sys/ioctl/platform/linux.rs +++ b/src/sys/ioctl/platform/linux.rs @@ -106,34 +106,6 @@ macro_rules! iorw { ($ty:expr, $nr:expr, $sz:expr) => (ioc!($crate::sys::ioctl::READ | $crate::sys::ioctl::WRITE, $ty, $nr, $sz)) } -/// Extracts the "direction" (read/write/none) from an encoded ioctl command. -#[inline(always)] -#[doc(hidden)] -pub fn ioc_dir(nr: u32) -> u8 { - ((nr >> DIRSHIFT) & DIRMASK) as u8 -} - -/// Extracts the type from an encoded ioctl command. -#[inline(always)] -#[doc(hidden)] -pub fn ioc_type(nr: u32) -> u32 { - (nr >> TYPESHIFT) & TYPEMASK -} - -/// Extracts the ioctl number from an encoded ioctl command. -#[inline(always)] -#[doc(hidden)] -pub fn ioc_nr(nr: u32) -> u32 { - (nr >> NRSHIFT) & NRMASK -} - -/// Extracts the size from an encoded ioctl command. -#[inline(always)] -#[doc(hidden)] -pub fn ioc_size(nr: u32) -> u32 { - ((nr >> SIZESHIFT) as u32) & SIZEMASK -} - #[doc(hidden)] pub const IN: u32 = (WRITE as u32) << DIRSHIFT; #[doc(hidden)] |