kvm questions

John Baldwin jhb at FreeBSD.org
Mon Jun 9 04:55:35 PDT 2003


On 08-Jun-2003 Vlad GALU wrote:
> 
>       Hello. I am trying to write a monitoring program
> which makes use of the kvm interface. My problem here
> is that I couldn't find a detailed description of the
> kinfo_proc structure anywhere in the system sources or
> Google. I have special interests towards the kp_proc &
> kp_eproc members. I can't get the process names until
> I know what those structures look like. I also posted this
> message to freebsd-stable, because I understand that
> the kinfo_proc structure has changed a bit between
> -stable and -current. My platform is 4.8-STABLE.

Most of the fields in kinfo_proc() are copies of the same
fields in struct proc/thread/etc. declared in sys/proc.h.

-- 

John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


More information about the freebsd-hackers mailing list