diff options
Diffstat (limited to 'src/ioctl.rs')
| -rw-r--r-- | src/ioctl.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ioctl.rs b/src/ioctl.rs index 6a7465593..f5ab410db 100644 --- a/src/ioctl.rs +++ b/src/ioctl.rs | |||
| @@ -88,6 +88,10 @@ impl IoctlState { | |||
| 88 | pending | 88 | pending |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | pub fn cancel_ioctl(&self) { | ||
| 92 | self.state.set(IoctlStateInner::Done { resp_len: 0 }); | ||
| 93 | } | ||
| 94 | |||
| 91 | pub async fn do_ioctl(&self, kind: IoctlType, cmd: u32, iface: u32, buf: &mut [u8]) -> usize { | 95 | pub async fn do_ioctl(&self, kind: IoctlType, cmd: u32, iface: u32, buf: &mut [u8]) -> usize { |
| 92 | warn!("doing ioctl"); | 96 | warn!("doing ioctl"); |
| 93 | self.state | 97 | self.state |
