Is there a way to get a list of threads known to the scheduler? I know about runqueue(9) and sleepqueue(9), but are there any others? I'm writing a kernel thread that will get the list of all known threads in the system and bash it against the allproc list to see if there are any hidden processes. If it finds one, then it puts the associated proc back on the list and prints a message to the console.