Skip to content

Commit aba89f0

Browse files
committed
Remove ioc_* functions
These are low-level functions that shouldn't be exposed
1 parent dab2c04 commit aba89f0

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/sys/ioctl/platform/linux.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -106,34 +106,6 @@ macro_rules! iorw {
106106
($ty:expr, $nr:expr, $sz:expr) => (ioc!($crate::sys::ioctl::READ | $crate::sys::ioctl::WRITE, $ty, $nr, $sz))
107107
}
108108

109-
/// Extracts the "direction" (read/write/none) from an encoded ioctl command.
110-
#[inline(always)]
111-
#[doc(hidden)]
112-
pub fn ioc_dir(nr: u32) -> u8 {
113-
((nr >> DIRSHIFT) & DIRMASK) as u8
114-
}
115-
116-
/// Extracts the type from an encoded ioctl command.
117-
#[inline(always)]
118-
#[doc(hidden)]
119-
pub fn ioc_type(nr: u32) -> u32 {
120-
(nr >> TYPESHIFT) & TYPEMASK
121-
}
122-
123-
/// Extracts the ioctl number from an encoded ioctl command.
124-
#[inline(always)]
125-
#[doc(hidden)]
126-
pub fn ioc_nr(nr: u32) -> u32 {
127-
(nr >> NRSHIFT) & NRMASK
128-
}
129-
130-
/// Extracts the size from an encoded ioctl command.
131-
#[inline(always)]
132-
#[doc(hidden)]
133-
pub fn ioc_size(nr: u32) -> u32 {
134-
((nr >> SIZESHIFT) as u32) & SIZEMASK
135-
}
136-
137109
#[doc(hidden)]
138110
pub const IN: u32 = (WRITE as u32) << DIRSHIFT;
139111
#[doc(hidden)]

0 commit comments

Comments
 (0)