MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / SysGetPID

Function SysGetPID

Kernel/src/arch/x86_64/syscalls.cpp:640–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640long SysGetPID(regs64_t* r){
641 uint64_t* pid = (uint64_t*)SC_ARG0(r);
642
643 *pid = Scheduler::GetCurrentProcess()->pid;
644
645 return 0;
646}
647
648long SysMount(regs64_t* r){
649 return 0;

Callers

nothing calls this directly

Calls 1

GetCurrentProcessFunction · 0.85

Tested by

no test coverage detected