move xen libraries to xen/

This commit is contained in:
Alex Zenla
2024-01-22 22:33:50 -08:00
parent 31739605a2
commit ba418649db
27 changed files with 6 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(())
}