[][src]Struct kernel::introspection::KernelInfo

pub struct KernelInfo {
    kernel: &'static Kernel,
}

This struct provides the inspection functions.

Fields

kernel: &'static Kernel

Methods

impl KernelInfo[src]

pub fn new(kernel: &'static Kernel) -> KernelInfo[src]

pub fn number_loaded_processes(
    &self,
    _capability: &dyn ProcessManagementCapability
) -> usize
[src]

Returns how many processes have been loaded on this platform. This is functionally equivalent to how many of the process slots have been used on the board. This does not consider what state the process is in, as long as it has been loaded.

pub fn number_active_processes(
    &self,
    _capability: &dyn ProcessManagementCapability
) -> usize
[src]

Returns how many processes are considered to be active. This includes processes in the Running and Yield states. This does not include processes which have faulted, or processes which the kernel is no longer scheduling because they have faulted too frequently or for some other reason.

pub fn number_inactive_processes(
    &self,
    _capability: &dyn ProcessManagementCapability
) -> usize
[src]

Returns how many processes are considered to be inactive. This includes processes in the Fault state and processes which the kernel is not scheduling for any reason.

pub fn process_name(
    &self,
    app: AppId,
    _capability: &dyn ProcessManagementCapability
) -> &'static str
[src]

Get the name of the process.

pub fn number_app_syscalls(
    &self,
    app: AppId,
    _capability: &dyn ProcessManagementCapability
) -> usize
[src]

Returns the number of syscalls the app has called.

pub fn number_app_dropped_callbacks(
    &self,
    app: AppId,
    _capability: &dyn ProcessManagementCapability
) -> usize
[src]

Returns the number of dropped callbacks the app has experience. Callbacks can be dropped if the queue for the app is full when a capsule tries to schedule a callback.

pub fn number_app_restarts(
    &self,
    app: AppId,
    _capability: &dyn ProcessManagementCapability
) -> usize
[src]

Returns the number of time this app has been restarted.

pub fn number_app_timeslice_expirations(
    &self,
    app: AppId,
    _capability: &dyn ProcessManagementCapability
) -> usize
[src]

Returns the number of time this app has exceeded its timeslice.

pub fn timeslice_expirations(
    &self,
    _capability: &dyn ProcessManagementCapability
) -> usize
[src]

Returns the total number of times all processes have exceeded their timeslices.

Auto Trait Implementations

impl Unpin for KernelInfo

impl !Send for KernelInfo

impl !Sync for KernelInfo

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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