Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LibertyOS-Development/kernel
/ setdir
Function
setdir
src/sys/proc.rs:387–392 ·
view source on GitHub ↗
Set directory
(directory: &str)
Source
from the content-addressed store, hash-verified
385
386
// Set directory
387
pub fn setdir(directory: &str)
388
{
389
let mut tab = PROCTAB.write();
390
let proc = &mut tab[id()];
391
proc.data.directory = directory.into();
392
}
393
394
395
// Set environment
Callers
nothing calls this directly
Calls
3
id
Function · 0.85
into
Method · 0.80
write
Method · 0.45
Tested by
no test coverage detected