freebsd-skq/bin/ps
Julian Elischer 7ab24ea3b9 Introduce a way to make pure kernal threads.
kthread_add() takes the same parameters as the old kthread_create()
plus a pointer to a process structure, and adds a kernel thread
to that process.

kproc_kthread_add() takes the parameters for kthread_add,
plus a process name and a pointer to a pointer to a process instead of just
a pointer, and if the proc * is NULL, it creates the process to the
specifications required, before adding the thread to it.

All other old kthread_xxx() calls return, but act on (struct thread *)
instead of (struct proc *). One reason to change the name is so that
any old kernel modules that are lying around and expect kthread_create()
to make a process will not just accidentally link.

fix top to show  kernel threads by their thread name in -SH mode
add a tdnam formatting option to ps to show thread names.

make all idle threads actual kthreads and put them into their own idled process.
make all interrupt threads kthreads and put them in an interd process
(mainly for aesthetic and accounting reasons)
rename proc 0 to be 'kernel' and it's swapper thread is now 'swapper'

man page fixes to follow.
2007-10-26 08:00:41 +00:00
..
extern.h Introduce a way to make pure kernal threads. 2007-10-26 08:00:41 +00:00
fmt.c Get rid of a cast to '(void) ' on the return of a call to strcpy. 2004-06-22 02:18:29 +00:00
keyword.c Introduce a way to make pure kernal threads. 2007-10-26 08:00:41 +00:00
Makefile ps(1) is WARNS=6 on all Tier-1 platforms as far as I can test, 2005-01-27 13:42:40 +00:00
nlist.c Remove clause 3 from the UCB licenses. 2004-04-06 20:06:54 +00:00
print.c Introduce a way to make pure kernal threads. 2007-10-26 08:00:41 +00:00
ps.1 Markup fixes. 2006-09-17 17:40:07 +00:00
ps.c Introduce a way to make pure kernal threads. 2007-10-26 08:00:41 +00:00
ps.h Change "struct varent" to use the standard queue(8) macros, instead of 2004-06-23 23:48:09 +00:00