pub struct SyscallReturnTest { /* private fields */ }Implementations§
Trait Implementations§
Source§impl SyscallDriver for SyscallReturnTest
impl SyscallDriver for SyscallReturnTest
Source§fn allow_userspace_readable(
&self,
processid: ProcessId,
which: usize,
slice: UserspaceReadableProcessBuffer,
) -> Result<UserspaceReadableProcessBuffer, (UserspaceReadableProcessBuffer, ErrorCode)>
fn allow_userspace_readable( &self, processid: ProcessId, which: usize, slice: UserspaceReadableProcessBuffer, ) -> Result<UserspaceReadableProcessBuffer, (UserspaceReadableProcessBuffer, ErrorCode)>
Accept or reject an allow-userspace-readable buffer.
which 0: accept — swap the incoming buffer with whatever was stored
previously (initially empty) and return the old one to userspace.
Any other which value: reject with NOSUPPORT.
Source§fn command(
&self,
command_num: usize,
_r2: usize,
_r3: usize,
_process_id: ProcessId,
) -> CommandReturn
fn command( &self, command_num: usize, _r2: usize, _r3: usize, _process_id: ProcessId, ) -> CommandReturn
System call for a process to perform a short synchronous operation or
start a long-running split-phase operation (whose completion is signaled
with an upcall). Command 0 is a reserved command to detect if a
peripheral system call driver is installed and must always return a
[
CommandReturn::success].Auto Trait Implementations§
impl !RefUnwindSafe for SyscallReturnTest
impl !Send for SyscallReturnTest
impl !Sync for SyscallReturnTest
impl !UnwindSafe for SyscallReturnTest
impl Freeze for SyscallReturnTest
impl Unpin for SyscallReturnTest
impl UnsafeUnpin for SyscallReturnTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more