pub struct ProtectionDomainDecl {
pub name: String,
pub priority: u8,
pub irq: Option<u16>,
pub budget: u32,
pub period: u32,
pub fi: PathBuf,
pub span: Range<usize>,
}Expand description
Protection domain declaration.
§ProtectionDomain Declaration (.fis)
Declares an isolated execution domain (seL4 protection domain).
ProtectionDomain name(priority [, irq [, budget [, period]]]);| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
priority | decimal | yes | — | Scheduling priority, 0–254 |
irq | decimal | no | none | Hardware interrupt number |
budget | decimal | no | 1000 | Scheduling budget in microseconds |
period | decimal | no | = budget | Scheduling period in microseconds |
Any parameter except priority can be skipped by leaving its position empty
(consecutive commas), allowing later parameters to be set without earlier ones:
ProtectionDomain pd(100); // priority only
ProtectionDomain driver(200, 33); // priority + IRQ
ProtectionDomain rt(250, 10, 500, 2000); // all four
ProtectionDomain pd(100, , 500); // skip IRQ, set budget
ProtectionDomain pd(100, , , 2000); // skip IRQ and budget, set periodLanguage reference: Protection Domain Declarations.
Fields§
§name: StringProtection domain name.
priority: u8Scheduling priority (0–254).
irq: Option<u16>Optional hardware IRQ number.
budget: u32Scheduling budget in microseconds.
period: u32Scheduling period in microseconds.
fi: PathBufThe .fi implementing it, <name>.fi beside the .fis: set by the
front end as it binds the system to its programs, empty straight
from the parser.
span: Range<usize>Byte span of the entire declaration in the source.
Implementations§
Source§impl ProtectionDomainDecl
impl ProtectionDomainDecl
Sourcepub const DEFAULT_BUDGET: u32 = 1_000
pub const DEFAULT_BUDGET: u32 = 1_000
Default scheduling budget in microseconds, used when omitted in the .fis declaration.
Period has no fixed default — it defaults to whatever budget is set to.
Trait Implementations§
Source§impl Clone for ProtectionDomainDecl
impl Clone for ProtectionDomainDecl
Source§fn clone(&self) -> ProtectionDomainDecl
fn clone(&self) -> ProtectionDomainDecl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more