How to use pfind in freeBSD

Mel Flynn rflynn at acsalaska.net
Fri Mar 16 12:56:35 UTC 2012


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?

>From userland, see kvm_openfiles(3) and kvm_getprocs(3).

-- 
Mel


More information about the freebsd-hackers mailing list