diff options
author | Bryant Mairs <bryant@mai.rs> | 2017-07-11 11:55:25 -0700 |
---|---|---|
committer | Marcin Mielniczuk <marmistrz.dev@zoho.eu> | 2017-07-25 09:09:52 +0200 |
commit | caaffb883d78e09140b6a2fa77cc9fdb74d411fb (patch) | |
tree | aab931477f124272e5680f3d77fd1b966ed2c1f9 /src/sys | |
parent | 55a7d4b96d608b0f4b66dfa279e8906fca4e0ab2 (diff) | |
download | nix-caaffb883d78e09140b6a2fa77cc9fdb74d411fb.zip |
Remove ioc_* functions
These are low-level functions that shouldn't be exposed
Diffstat (limited to 'src/sys')
-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)] |