pub struct KernelInfo { /* private fields */ }
Expand description

This struct provides the inspection functions.

Implementations

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.

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.

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.

Get the name of the process.

Returns the number of syscalls the app has called.

Returns the number of dropped upcalls the app has experience. Upcalls can be dropped if the queue for the app is full when a capsule tries to schedule a upcall.

Returns the number of time this app has been restarted.

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

Returns a tuple of the (the number of grants in the grant region this app has allocated, total number of grants that exist in the system).

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.