Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LPC4/Full-Stack
/ is_pending
Method
is_pending
crates/virtual-machine/src/devices/plic.rs:73–77 ·
view source on GitHub ↗
(&self, id: u32)
Source
from the content-addressed store, hash-verified
71
best_id
72
}
73
74
fn is_pending(&self, id: u32) -> bool {
75
let idx = (id as usize - 1) / 32;
76
let bit = (id - 1) % 32;
77
(self.pending[idx] & (1 << bit)) != 0
78
}
79
80
fn is_enabled(&self, hart: usize, id: u32) -> bool {
Callers
1
next_irq
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected