Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 May 2008 21:00:23 +0400
From:      "Vladimir Ermakov" <samflanker@gmail.com>
To:        freebsd-current@freebsd.org
Cc:        kip.macy@gmail.com
Subject:   re: possible bug in /usr/include/sys/proc.h
Message-ID:  <d4efcfb70805201000w4dcb041blf84c60c92a78f29a@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
> td_lprof's type is going to be #ifdef _KERNEL. Why does this app need
> to know about struct proc?
>
>  -Kip

Application in question is a monitoring system's agent, and it uses
kvm_getprocs to obtain list of running processes. It is supposed to
compile on many different FreeBSD versions.

kvm_getprocs returns information in kinfo_proc structures, and
kinfo_proc at least on old FreeBSD versions has member kp_proc of type
struct proc. If inclusion of sys/proc.h is now prohibited, we can add
additional checks to configure and add appropriate ifdefs to our code.

/Vladimir Ermakov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d4efcfb70805201000w4dcb041blf84c60c92a78f29a>