Add a new system library, libkinfo. It is intended to replace libkvm for
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 18 Nov 2004 13:56:56 +0000 (13:56 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 18 Nov 2004 13:56:56 +0000 (13:56 +0000)
commit7b124c9f708aaf68f08db78e7512e73815b490bf
treededeec97e8a8f66032f0597a025a8e857f4dca49
parent9b28af8e3727d7587b77448272271ec1ef656804
Add a new system library, libkinfo. It is intended to replace libkvm for
most userland tools, which want to deal with a living kernel, not
post-mortem analysation.

Change the kern.file backing from a struct file array to a struct kinfo_file
array. The later is an independent structure, which includes the information
useful for userland. This allows changing the kernel-internals without
having to recompile libkinfo and derived programs. This is inspired by the
changes DES did in FreeBSD 5 (struct xfile).

Partly-obtained-from: FreeBSD (kern_descrip.c changes)
lib/Makefile
lib/libkinfo/kinfo.h [new file with mode: 0644]
lib/libkinfo/kinfo_file.c [new file with mode: 0644]
share/mk/bsd.libnames.mk
sys/kern/kern_descrip.c
sys/sys/kinfo.h [new file with mode: 0644]