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

Function GetNextProcessInfo

LibLemon/src/lemon/util.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 int GetNextProcessInfo(uint64_t* pid, lemon_process_info_t& pInfo){
30 long ret = 1;
31 if((ret = syscall(SYS_GET_NEXT_PROCESS_INFO, pid, &pInfo, 0, 0, 0)) < 0){
32 errno = -ret;
33 return -1;
34 }
35
36 return ret;
37 }
38
39 void GetProcessList(std::vector<lemon_process_info_t>& list){
40 uint64_t pid = 0;

Callers 1

GetProcessListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected