Macro kernel::create_capability[][src]

macro_rules! create_capability {
    ($T:ty $(,)?) => { ... };
}

Create an object with the given capability.

use kernel::capabilities::ProcessManagementCapability;
use kernel;

let process_mgmt_cap = create_capability!(ProcessManagementCapability);

This helper macro cannot be called from #![forbid(unsafe_code)] crates, and is used by trusted code to generate a capability that it can either use or pass to another module.