Struct linux_io::fd::ioctl::IoctlReqRead
source · #[repr(transparent)]pub struct IoctlReqRead<Device: IoDevice, Result>where
*mut Result: AsRawV,
Result: Copy,{ /* private fields */ }
Expand description
Implementation of IoctlReq
with a fixed cmd
value and passing a
pointer to a zeroed memory block of type Result
directly through to the
underlying system call and then returnin a copy of that memory.
Trait Implementations§
source§impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqRead<Device, Result>where
*mut Result: AsRawV,
Result: 'a + Copy,
Device: 'a + IoDevice,
impl<'a, Device, Result> IoctlReq<'a, Device> for IoctlReqRead<Device, Result>where *mut Result: AsRawV, Result: 'a + Copy, Device: 'a + IoDevice,
§type TempMem = Result
type TempMem = Result
The type of some temporary memory that the request needs to do its
work. Read more
§type RawArg = *mut Result
type RawArg = *mut Result
The type of argument that will be passed to the raw system call.
source§fn prepare_ioctl_args(
&self,
_: &Self::ExtArg,
temp_mem: &mut MaybeUninit<Self::TempMem>
) -> (ulong, Self::RawArg)
fn prepare_ioctl_args( &self, _: &Self::ExtArg, temp_mem: &mut MaybeUninit<Self::TempMem> ) -> (ulong, Self::RawArg)
source§fn prepare_ioctl_result(
&self,
_: int,
_: &Self::ExtArg,
temp_mem: &MaybeUninit<Self::TempMem>
) -> Self::Result
fn prepare_ioctl_result( &self, _: int, _: &Self::ExtArg, temp_mem: &MaybeUninit<Self::TempMem> ) -> Self::Result
Prepare a raw successful result from a
ioctl
call to be returned.