-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uapi: start support for rustic events (DMA, IPC, Signals and IRQ) man…
…ipulation (#107) - [x] Define event header and event structure that correspond to a kernel event - [x] Support for Event reception from kernel - [x] Support for Event data transmission when being and IPC Note: Event reception/transmission are not syscall calls, but exchange interactions, meaning that a typical usage would be : ```rust let mut my_event = Event { header = ExchangeHeader { event = EventType::None, length = 0, peer = 0, magic = 0, }, data = &[u8; 128], } let _ = syscall::wait_for_event(EventType::Ipc.into() | EventType::Irq.into(), 0); // get back event from kernel, including data if needed copy_from_kernel(my_event)?; match event.header.event { EventType::Ipc => (), EventType::Irq => (), /// and so on } ```
- Loading branch information
Showing
2 changed files
with
304 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters