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

Function GetProcessInfo

LibLemon/src/lemon/util.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 int GetProcessInfo(uint64_t pid, lemon_process_info_t& pInfo){
20 long ret = -1;
21 if((ret = syscall(SYS_GET_PROCESS_INFO, pid, &pInfo, 0, 0, 0))){
22 errno = -ret;
23 return -1;
24 }
25
26 return 0;
27 }
28
29 int GetNextProcessInfo(uint64_t* pid, lemon_process_info_t& pInfo){
30 long ret = 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected