mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 12:50:54 +00:00
11 lines
292 B
Rust
11 lines
292 B
Rust
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(())
|
|
}
|