MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / await_interrupt

Function await_interrupt

kernel/src/interrupts.rs:324–331  ·  view source on GitHub ↗

Store a thread, to be scheduled when an interrupt occurs

(thread: Box<Thread>)

Source from the content-addressed store, hash-verified

322
323/// Store a thread, to be scheduled when an interrupt occurs
324pub fn await_interrupt(thread: Box<Thread>) {
325 INTERRUPT_WAITING.write().push(thread);
326
327 unsafe {
328 PICS.lock()
329 .notify_end_of_interrupt(InterruptIndex::Keyboard.as_u8());
330 }
331}
332
333interrupt_wrap!(keyboard_handler_inner => keyboard_interrupt_handler);
334

Callers 2

sys_await_interruptFunction · 0.70
mainFunction · 0.50

Calls 3

as_u8Method · 0.80
pushMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected