freebsd-skq/lib/libkvm
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
..
kvm_amd64.c Re-enable raw dump format support on i386 and amd64 for /dev/fwmem. 2007-06-15 11:35:11 +00:00
kvm_arm.c Per Olivier Houchard, use the proper license for this file. He 2007-01-08 18:25:58 +00:00
kvm_file.c Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_geterr.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_getfiles.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_getloadavg.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_getloadavg.c Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_getprocs.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_getswapinfo.3 Expand the license referenced indirectly inline. 2004-07-31 18:49:53 +00:00
kvm_getswapinfo.c - Move 'struct swdevt' back into swap_pager.h and expose it to userland. 2007-02-07 17:43:11 +00:00
kvm_i386.c Re-enable raw dump format support on i386 and amd64 for /dev/fwmem. 2007-06-15 11:35:11 +00:00
kvm_ia64.c Add a level of indirection to the kernel PTE table. The old 2007-05-19 13:11:27 +00:00
kvm_minidump_amd64.c Include strings.h for bzero() 2006-06-05 08:51:14 +00:00
kvm_minidump_i386.c Include strings.h for bzero() 2006-06-05 08:51:14 +00:00
kvm_nlist.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_open.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_powerpc.c Support crash dumps > 4GB in size on 32 bit platforms. _kvm_kvatop() 2005-06-29 22:39:41 +00:00
kvm_private.h Re-enable raw dump format support on i386 and amd64 for /dev/fwmem. 2007-06-15 11:35:11 +00:00
kvm_proc.c Introduce a way to make pure kernal threads. 2007-10-26 08:00:41 +00:00
kvm_read.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_sparc64.c Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_sparc.c Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm.c Re-enable raw dump format support on i386 and amd64 for /dev/fwmem. 2007-06-15 11:35:11 +00:00
kvm.h Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
Makefile unbreak build for sparc64 etc. 2006-10-09 05:12:54 +00:00