QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
How to detect 16 or 32-bit Dev |
Ref. No. |
QNX.000009253 |
Category(ies) |
Utilities, Development, Character I/O |
Issue |
In our software we would like to automatically spawn the correct version of our device driver depending on which Dev is in charge of the selected prefix. Is there an "official" way to detect whether a 16-bit or 32-bit Dev is in charge of a given prefix?
|
Solution |
Use qnx_prefix_query() on the prefix to get the pid, then qnx_pflags() to get the flags, then check for _PPF_32BIT.
|
|