Pop the oldest event, or the empty sentinel.
(&mut self)
| 63 | // Pop the oldest event, or the empty sentinel. |
| 64 | fn pop(&mut self) -> u32 { |
| 65 | self.queue.pop_front().unwrap_or(KBD_EMPTY) |
| 66 | } |
| 67 | |
| 68 | fn read_reg(&mut self, offset: usize) -> u32 { |
| 69 | match offset { |
| 70 | KBD_STATUS_REG => self.queue.len() as u32, |
no outgoing calls
no test coverage detected