How to use pfind in freeBSD
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-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: How to use pfind in freeBSD
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? > ___ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org" 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 wrote few years ago to recover the battery state in my laptop using sysctl ; hope this help. http://www.bebik.net/doku.php/battery_life_and_sysctl_3 Regards, Rodrigo ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: How to use pfind in freeBSD
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 wrote few years ago to recover the > battery state in my laptop using sysctl ; hope this help. > http://www.bebik.net/doku.php/battery_life_and_sysctl_3 Hi Rodrigo, Thanks for your pointer to your page; the page has a small typo: % sysctrl hw.acpi.battery it should say "sysctl"; one question: how do you get the output of 'battery' into the status bar (I'musing KDE 3.5.10). Thanks matthias PD: the lines of your mail are filled up to position 191 with trailing blanks; -- Matthias Apitz e - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: How to use pfind in freeBSD
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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
FreeBSD 9.0 x64 de interface under Hyper-V
Hello All, I have two freebsd VMs running in Hyper-V 9.0 x86 and 9.0 x64. On x64 the de0 interface apparenlty does not come up when the system is booted. If I bring the interface down and back upagain (ifconfig de0 down, ifconfig de0 up) it works. On x86 de0 works fine. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"