So, this seemed simple at first, but after crawling Google and here, the answer doesn\'t seem as simple as I first thought.
Basically, I\'m editing a MINIX kernel as
struct kinfo kinfo; int nr_tasks, nr_procs; getsysinfo(PM_PROC_NR, SI_KINFO, &kinfo); nr_procs = kinfo.nr_pro;
This will get you the number of processes running