Once we've identified which process we're interested in, one of the first things we need to do is find information about the process. (We'll look at how to get information about the threads in a process shortly.)
There are six devctl() commands that deal with processes:
Other devctl() commands deal with processes as well, but they're used for control operations rather than fetching information.
To use these commands, we need to open the process's ctl file; we don't need to access the process's address space in order to issue devctl() commands. We do have to have the appropriate permissions, as described in Controlling processes via the /proc filesystem in the Processes chapter of the QNX Neutrino Programmer's Guide.