Module kernel::grant[][src]

Data structure to store a list of userspace applications.

Re-exports

use callback::AppId;
use core::marker::PhantomData;
use core::marker::PhantomData;
use core::mem::size_of;
use core::ops::Deref;
use core::ops::DerefMut;
use core::ptr::read_volatile;
use core::ptr::write_volatile;
use core::ptr::Unique;
use debug;
use process;
use process::Error;

Structs

Allocator
AppliedGrant
Borrowed
Grant
Iter
Owned

Statics

CONTAINER_COUNTER

Functions

kernel_grant_for

This function contains the mapping of kernel "app" numbers to their functions for getting a pointer to their grant region. Normal apps are stored in a processes array, and finding apps is a matter of iterating that array. Kernel "apps" currently (June 2018) have no such structure, so finding them is a bit more ad-hoc.