Re: How to use pfind in freeBSD

2012-03-16 Thread Mel Flynn
On 3/16/2012 08:09, kota saikrishna wrote: > I need to get process data structure using a pid. I found the pfind > function which returns struct proc * but when i tried to use pfind > function it is showing ---undefined reference to `pfind' > Can any one suggest how to use pfind() function? >Fro

Re: How to use pfind in freeBSD

2012-03-16 Thread Matthias Apitz
El día Friday, March 16, 2012 a las 10:13:27AM +0100, Rodrigo OSORIO escribió: > Hi, > > pfind and friends looks like kernel only function. I can suggest you to > explore > the sysctl(3) way to recover the kern.proc structures. There are fexw examples > on the internet, you can check a code I wro

Re: How to use pfind in freeBSD

2012-03-16 Thread Rodrigo OSORIO
On 16/03/12 12:39 +0530, kota saikrishna wrote: > I need to get process data structure using a pid. I found the pfind > function which returns struct proc * but when i tried to use pfind > function it is showing ---undefined reference to `pfind' > Can any one suggest how to use pfind() function?

How to use pfind in freeBSD

2012-03-16 Thread kota saikrishna
I need to get process data structure using a pid. I found the pfind function which returns struct proc * but when i tried to use pfind function it is showing ---undefined reference to `pfind' Can any one suggest how to use pfind() function? ___ freebsd-