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

Function drain

src/sys/console.rs:247–253  ·  view source on GitHub ↗

Drain

()

Source from the content-addressed store, hash-verified

245
246// Drain
247pub fn drain()
248{
249 interrupts::without_interrupts(||
250 {
251 STDIN.lock().clear();
252 })
253}
254
255
256// Disable echo

Callers 1

runFunction · 0.85

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected