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

Function FindProcessByPID

Kernel/src/arch/x86_64/scheduler.cpp:133–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 }
132
133 process_t* FindProcessByPID(uint64_t pid){
134 for(process_t* proc : *processes){
135 if(proc->pid == pid) return proc;
136 }
137
138 return nullptr;
139 }
140
141 uint64_t GetNextProccessPID(uint64_t pid){
142 uint64_t newPID = UINT64_MAX;

Callers 3

SysWaitPIDFunction · 0.85
SysGetProcessInfoFunction · 0.85
SysGetNextProcessInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected