[][src]Struct sunrise_kernel::ipc::session::Request

struct Request {
    sender_buf: VirtualAddress,
    sender_bufsize: usize,
    sender: Arc<ThreadStruct>,
    answered: Arc<SpinLock<Option<Result<(), UserspaceError>>>>,
    buffers: Vec<Buffer>,
}

An incoming IPC request.

Fields

sender_buf: VirtualAddress

Address of the mirror-mapped (in-kernel) IPC buffer. Guaranteed to be at least sender_bufsize in size.

sender_bufsize: usize

Size of the IPC buffer.

sender: Arc<ThreadStruct>

Thread that sent this request. It should be woken up when the request is answered.

answered: Arc<SpinLock<Option<Result<(), UserspaceError>>>>

A really really broken excuse for a condvar. The thread replying should insert a result (potentially an error) in this option before waking up the sender.

buffers: Vec<Buffer>

A/B/W buffers that were mapped during the request. We should unmap them when replying.

Trait Implementations

impl Debug for Request[src]

Auto Trait Implementations

impl !RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl !UnwindSafe for Request

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.