MCPcopy 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
387pub 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

idFunction · 0.85
intoMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected