mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 12:50:54 +00:00
xenevtchn: fix ioctl constants
This commit is contained in:
parent
4955ed3a1c
commit
09690c33e2
@ -1,4 +1,4 @@
|
||||
use nix::{ioctl_none, ioctl_readwrite_bad, request_code_none};
|
||||
use nix::{ioctl_none, ioctl_readwrite_bad};
|
||||
use std::ffi::c_uint;
|
||||
|
||||
#[repr(C)]
|
||||
@ -27,17 +27,9 @@ pub struct Notify {
|
||||
pub port: c_uint,
|
||||
}
|
||||
|
||||
ioctl_readwrite_bad!(bind_virq, request_code_none!(b'E', 0), BindVirq);
|
||||
ioctl_readwrite_bad!(
|
||||
bind_interdomain,
|
||||
request_code_none!(b'E', 1),
|
||||
BindInterdomain
|
||||
);
|
||||
ioctl_readwrite_bad!(
|
||||
bind_unbound_port,
|
||||
request_code_none!(b'E', 2),
|
||||
BindUnboundPort
|
||||
);
|
||||
ioctl_readwrite_bad!(unbind, request_code_none!(b'E', 3), UnbindPort);
|
||||
ioctl_readwrite_bad!(notify, request_code_none!(b'E', 4), Notify);
|
||||
ioctl_none!(reset, b'E', 5);
|
||||
ioctl_readwrite_bad!(bind_virq, 0x44500, BindVirq);
|
||||
ioctl_readwrite_bad!(bind_interdomain, 0x84501, BindInterdomain);
|
||||
ioctl_readwrite_bad!(bind_unbound_port, 0x44503, BindUnboundPort);
|
||||
ioctl_readwrite_bad!(unbind, 0x44502, UnbindPort);
|
||||
ioctl_readwrite_bad!(notify, 0x44504, Notify);
|
||||
ioctl_none!(reset, 0x4505, 5);
|
||||
|
Loading…
Reference in New Issue
Block a user