Support for new fevent

This commit is contained in:
Jeremy Soller
2019-03-13 13:58:55 -06:00
parent 25aec9f2a7
commit e090281086
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ impl SchemeBlockMut for Intel8254x {
fn fevent(&mut self, id: usize, _flags: usize) -> Result<Option<usize>> {
let _flags = self.handles.get(&id).ok_or(Error::new(EBADF))?;
Ok(Some(id))
Ok(Some(0))
}
fn fpath(&mut self, id: usize, buf: &mut [u8]) -> Result<Option<usize>> {
+1 -1
View File
@@ -176,7 +176,7 @@ impl SchemeMut for Rtl8168 {
fn fevent(&mut self, id: usize, _flags: usize) -> Result<usize> {
let _flags = self.handles.get(&id).ok_or(Error::new(EBADF))?;
Ok(id)
Ok(0)
}
fn fpath(&mut self, id: usize, buf: &mut [u8]) -> Result<usize> {
+1 -1
View File
@@ -139,7 +139,7 @@ impl SchemeMut for DisplayScheme {
if let HandleKind::Screen(_screen_i) = handle.kind {
handle.events = flags;
Ok(id)
Ok(0)
} else {
Err(Error::new(EBADF))
}