In QNX 4 we can get the process info by using qnx_psinfo.
Question: In neutrino, we have under /proc the running processes
but I do not how to get the info from them ?
Thanks in advance,
Trong Nguyen
In QNX 4 we can get the process info by using qnx_psinfo.
Question: In neutrino, we have under /proc the running processes
but I do not how to get the info from them ?
Thanks in advance,
Trong Nguyen
Trong Nguyen <tnguyen@aquilamsl.com> wrote:
TN > In QNX 4 we can get the process info by using qnx_psinfo.
TN > Question: In neutrino, we have under /proc the running processes
TN > but I do not how to get the info from them ?
TN > Thanks in advance,
TN > Trong Nguyen
You should check out Rebert Krten’s new book. He explains how to read
through the /proc/{pid}/as files and get all kinds of good stuff.
–
Bill Caroselli – Q-TPS Consulting
1-(708) 308-4956 <== Note: New Number
qtps@earthlink.net
Trong Nguyen <tnguyen@aquilamsl.com> wrote:
In QNX 4 we can get the process info by using qnx_psinfo.
I miss the simple, yet powerful, qnx_psinfo() myself.
Question: In neutrino, we have under /proc the running processes
but I do not how to get the info from them ?
You can list the processes by a readdir() on /proc. You can read the
address space of a process by opening /proc/pid/as, seeking and reading.
You can open /proc/pid, and issue a bunch of devctl()s to get information.
Take a look at <sys/procfs.h> and <sys/debug.h> and the (old but still
potentially useful) pidin source at cvs.qnx.com.
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.