Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LibertyOS-Development/kernel
/ spawn
Method
spawn
src/sys/proc.rs:218–229 ·
view source on GitHub ↗
Spawn
(bin: &[u8])
Source
from the content-addressed store, hash-verified
216
217
// Spawn
218
pub fn spawn(bin: &[u8])
219
{
220
if let Ok(pid) = Self::create(bin)
221
{
222
let proc =
223
{
224
let tab = PROCTAB.read();
225
tab[pid].clone()
226
};
227
proc.exec();
228
}
229
}
230
}
231
232
Callers
nothing calls this directly
Calls
2
read
Method · 0.45
exec
Method · 0.45
Tested by
no test coverage detected