Process Information

Is there a way to get process information programmatically? I know about
pidin and ps, but I would like to examine the process state. I’d like to
find a function like waitpid, but I want to detect states other than
termination. Some other OSs let you get a task control block and that
contains all relevant information for the task. Is there a similar concept
in QNX?

Thanks,
David Kuechenmeister

David Kuechenmeister wrote:

Is there a way to get process information programmatically? I know about
pidin and ps, but I would like to examine the process state. I’d like to
find a function like waitpid, but I want to detect states other than
termination. Some other OSs let you get a task control block and that
contains all relevant information for the task. Is there a similar concept
in QNX?

This information is available through the /proc interface on QNX.

The source for pidin is on cvs.qnx.com, so you can use this as
documentation for the interface (at least for anything of the
data the pidin provides).

Rennie

The source for pidin on the public cvs should show you exactly how to
extract information on a process/thread

-Adam

David Kuechenmeister <david.kuechenmeister@viasat.com> wrote in message
news:aq6p1i$50q$1@inn.qnx.com

Is there a way to get process information programmatically? I know about
pidin and ps, but I would like to examine the process state. I’d like to
find a function like waitpid, but I want to detect states other than
termination. Some other OSs let you get a task control block and that
contains all relevant information for the task. Is there a similar concept
in QNX?

Thanks,
David Kuechenmeister

pidin has a pretty extensive list of properties. I think that will be
sufficient. Thanks.

“Rennie Allen” <rallen@csical.com> wrote in message
news:3DC690F5.8090904@csical.com

David Kuechenmeister wrote:
Is there a way to get process information programmatically? I know about
pidin and ps, but I would like to examine the process state. I’d like to
find a function like waitpid, but I want to detect states other than
termination. Some other OSs let you get a task control block and that
contains all relevant information for the task. Is there a similar
concept
in QNX?

This information is available through the /proc interface on QNX.

The source for pidin is on cvs.qnx.com, so you can use this as
documentation for the interface (at least for anything of the
data the pidin provides).

Rennie

I read through the Process Manager section in the “System Architecture”
description. That didn’t have much information about the /proc interface. Is
there other documentation on the /proc interface in the standard QNX
distribution?

Thanks,

“David Kuechenmeister” <david.kuechenmeister@viasat.com> wrote in message
news:aq8ejn$2ig$1@inn.qnx.com

pidin has a pretty extensive list of properties. I think that will be
sufficient. Thanks.

“Rennie Allen” <> rallen@csical.com> > wrote in message
news:> 3DC690F5.8090904@csical.com> …
David Kuechenmeister wrote:
Is there a way to get process information programmatically? I know
about
pidin and ps, but I would like to examine the process state. I’d like
to
find a function like waitpid, but I want to detect states other than
termination. Some other OSs let you get a task control block and that
contains all relevant information for the task. Is there a similar
concept
in QNX?

This information is available through the /proc interface on QNX.

The source for pidin is on cvs.qnx.com, so you can use this as
documentation for the interface (at least for anything of the
data the pidin provides).

Rennie

\