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

Method new

src/sys/proc.rs:193–214  ·  view source on GitHub ↗

New

(id: usize)

Source from the content-addressed store, hash-verified

191
192 // New
193 pub fn new(id: usize) -> Self
194 {
195 let isf = InterruptStackFrameValue
196 {
197 code_segment: 0,
198 cpu_flags: 0,
199 instruction_pointer: VirtAddr::new(0),
200 stack_pointer: VirtAddr::new(0),
201 stack_segment: 0,
202 };
203
204 Self
205 {
206 id,
207 code_address: 0,
208 code_size: 0,
209 entrypt: 0,
210 sf: isf,
211 reg: Reg::default(),
212 data: ProcData::new("/", None),
213 }
214 }
215
216
217 // Spawn

Callers

nothing calls this directly

Calls 3

DeviceEnum · 0.85
ConsoleClass · 0.85
mapMethod · 0.45

Tested by

no test coverage detected