Restore exporting of kernel threads as 'fake' processes. Different from
authorThomas E. Spanjaard <tgen@dragonflybsd.org>
Thu, 1 Feb 2007 20:27:05 +0000 (20:27 +0000)
committerThomas E. Spanjaard <tgen@dragonflybsd.org>
Thu, 1 Feb 2007 20:27:05 +0000 (20:27 +0000)
commitef02d0e1fce16467f315f2ab86d0dc133fe99ec2
tree72a25d60ed6cec9761c4b62072efb6bcee733b83
parent3c5a0ece14f1381a006cce022b7b201217d84982
Restore exporting of kernel threads as 'fake' processes. Different from
before is the fact that we don't take initproc as blueprint anymore, but
rather fake up or set according to the thread the things we care about
explicitly. This also makes use of the newly added fill_kinfo_proc_thread()
in libkvm for operation on dumps feasible.

Also some minor cleanups to related code.

In-collaboration-with: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
sys/kern/kern_kinfo.c
sys/kern/kern_proc.c
sys/sys/kinfo.h