implement evtchn support

This commit is contained in:
Alex Zenla
2024-01-08 17:07:00 -08:00
parent 7ca32dd413
commit 47b924d618
11 changed files with 179 additions and 6 deletions

View File

@ -0,0 +1,10 @@
use xenevtchn::{EventChannel, EventChannelError};
fn main() -> Result<(), EventChannelError> {
let mut channel = EventChannel::open()?;
println!("Channel opened.");
let port = channel.bind_unbound_port(1)?;
println!("port: {}", port);
channel.unbind(port)?;
Ok(())
}