From e3b18ceeb91190a41be320b20b931b80763304ac Mon Sep 17 00:00:00 2001 From: Bryant Mairs Date: Tue, 11 Jul 2017 11:55:25 -0700 Subject: Remove ioc_* functions These are low-level functions that shouldn't be exposed --- src/sys/ioctl/platform/linux.rs | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src') 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)] -- cgit v1.2.3