chore(xen): rewrite event channel code

This commit is contained in:
Alex Zenla
2024-08-13 14:59:43 -07:00
parent ffc9dcc0ea
commit 621ae536f6
10 changed files with 203 additions and 137 deletions

View File

@ -1,9 +1,9 @@
use xenevtchn::error::Result;
use xenevtchn::EventChannel;
use xenevtchn::EventChannelService;
#[tokio::main]
async fn main() -> Result<()> {
let channel = EventChannel::open().await?;
let channel = EventChannelService::open().await?;
println!("channel opened");
let port = channel.bind_unbound_port(0).await?;
println!("port: {}", port);