Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. kernel
  6. InterruptObject

InterruptObject

Struct InterruptObject 

Source
pub struct InterruptObject<K: Kernel> {
    base: ObjectBase<K>,
    ack_irqs: fn(Signals),
}
Expand description

Object for handling userspace interrupts.

Fields§

§base: ObjectBase<K>§ack_irqs: fn(Signals)

Implementations§

Source§

impl<K: Kernel> InterruptObject<K>

Source

pub const fn new(ack_irqs: fn(Signals)) -> Self

Source

pub fn interrupt(&self, kernel: K, signal_mask: Signals)

Trait Implementations§

Source§

impl<K: Kernel> KernelObject<K> for InterruptObject<K>

Source§

fn base(&self) -> Option<&ObjectBase<K>>

Source§

fn object_wait( &self, kernel: K, signal_mask: Signals, deadline: Instant<K::Clock>, ) -> Result<WaitReturn>

Wait on a set of signals to be active. Read more
Source§

fn interrupt_ack(&self, kernel: K, signal_mask: Signals) -> Result<()>

Source§

fn dump(&self, kernel: K)

Dump the object’s state for debugging.
Source§

unsafe fn wait_group_add( &self, kernel: K, object: &dyn KernelObject<K>, signal_mask: Signals, user_data: usize, ) -> Result<()>

Add an object to a WaitGroupObject. Read more
Source§

fn wait_group_remove( &self, kernel: K, object: &dyn KernelObject<K>, ) -> Result<()>

Remove an object to a WaitGroupObject.
Source§

fn channel_transact( &self, kernel: K, send_buffer: SyscallBuffer, recv_buffer: SyscallBuffer, deadline: Instant<K::Clock>, ) -> Result<usize>

Source§

fn channel_async_transact( &self, kernel: K, send_buffer: SyscallBuffer, recv_buffer: SyscallBuffer, ) -> Result<()>

Source§

fn channel_async_transact_complete(&self, kernel: K) -> Result<usize>

Source§

fn channel_async_cancel(&self, kernel: K) -> Result<()>

Source§

fn channel_read( &self, kernel: K, offset: usize, read_buffer: SyscallBuffer, ) -> Result<usize>

Source§

fn channel_respond( &self, kernel: K, response_buffer: SyscallBuffer, ) -> Result<()>

Source§

fn thread_start( &self, kernel: K, initial_pc: usize, initial_sp: usize, ) -> Result<()>

Source§

fn task_terminate(&self, kernel: K) -> Result<()>

Source§

fn task_join(&self, kernel: K) -> Result<ExitStatus>

Source§

fn process_start(&self, kernel: K) -> Result<()>

Source§

fn object_set_peer_user_signal(&self, kernel: K, set: bool) -> Result<()>

Set (set=true) or clear (set=false) Signals::USER on the paired peer.
Source§

fn reset(&self, _kernel: K) -> Result<()>

Reset the object’s signals to its initial signals.

Auto Trait Implementations§

§

impl<K> !Freeze for InterruptObject<K>

§

impl<K> !RefUnwindSafe for InterruptObject<K>

§

impl<K> !Unpin for InterruptObject<K>

§

impl<K> !UnsafeUnpin for InterruptObject<K>

§

impl<K> !UnwindSafe for InterruptObject<K>

§

impl<K> Forget for InterruptObject<K>

§

impl<K> Move for InterruptObject<K>

§

impl<K> Send for InterruptObject<K>
where ObjectBase<K>: Send,

§

impl<K> Sync for InterruptObject<K>
where ObjectBase<K>: Sync,

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

fn cast_into(self) -> U

§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = !

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.