aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ioctl.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ioctl.rs b/src/ioctl.rs
index 89b20a2d6..0fee1ad19 100644
--- a/src/ioctl.rs
+++ b/src/ioctl.rs
@@ -25,12 +25,20 @@ enum IoctlStateInner {
25 Done { resp_len: usize }, 25 Done { resp_len: usize },
26} 26}
27 27
28#[derive(Default)]
29struct Wakers { 28struct Wakers {
30 control: WakerRegistration, 29 control: WakerRegistration,
31 runner: WakerRegistration, 30 runner: WakerRegistration,
32} 31}
33 32
33impl Default for Wakers {
34 fn default() -> Self {
35 Self {
36 control: WakerRegistration::new(),
37 runner: WakerRegistration::new(),
38 }
39 }
40}
41
34pub struct IoctlState { 42pub struct IoctlState {
35 state: Cell<IoctlStateInner>, 43 state: Cell<IoctlStateInner>,
36 wakers: RefCell<Wakers>, 44 wakers: RefCell<Wakers>,