Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
247
pub fn drain()
248
{
249
interrupts::without_interrupts(||
250
{
251
STDIN.lock().clear();
252
})
253
}
254
255
256
// Disable echo
Callers
1
run
Function · 0.85
Calls
1
lock
Method · 0.80
Tested by
no test coverage detected