MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / read_scancode

Function read_scancode

src/dev/kbd/mod.rs:141–151  ·  view source on GitHub ↗

Read scancode

()

Source from the content-addressed store, hash-verified

139
140// Read scancode
141fn read_scancode() -> u8
142{
143 // Create a port, at 0x60
144 let mut port = Port::new(0x60);
145
146 // Read from the aforementioned port
147 unsafe
148 {
149 port.read()
150 }
151}
152
153
154// Send CSI

Callers 1

intrhFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected