struct procinfo { char id[20]; uint16_t id_len; uint16_t ppid; uint16_t pid; uint32_t uid; uint32_t flags; } __attribute__((packed)); size_t listprocs(struct procinfo *addr, size_t len);
This syscall writes a list of all processes available on the system to
addr, which contains len items.
The number of processes in the system is returned in success, and -1 in
failure, with the following errno:
EFAULT: The array pointed by addr is outside accessible memory.