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;
|
use std::ffi::c_uint;
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
@ -27,17 +27,9 @@ pub struct Notify {
|
|||||||
pub port: c_uint,
|
pub port: c_uint,
|
||||||
}
|
}
|
||||||
|
|
||||||
ioctl_readwrite_bad!(bind_virq, request_code_none!(b'E', 0), BindVirq);
|
ioctl_readwrite_bad!(bind_virq, 0x44500, BindVirq);
|
||||||
ioctl_readwrite_bad!(
|
ioctl_readwrite_bad!(bind_interdomain, 0x84501, BindInterdomain);
|
||||||
bind_interdomain,
|
ioctl_readwrite_bad!(bind_unbound_port, 0x44503, BindUnboundPort);
|
||||||
request_code_none!(b'E', 1),
|
ioctl_readwrite_bad!(unbind, 0x44502, UnbindPort);
|
||||||
BindInterdomain
|
ioctl_readwrite_bad!(notify, 0x44504, Notify);
|
||||||
);
|
ioctl_none!(reset, 0x4505, 5);
|
||||||
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);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user