Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Support for generic ioctls in Dev
Ref. No. QNX.000009242
Category(ies) Development, Character I/O
Issue We have the QNX4 RTOS.  We have a driver that controls a Digi smart card.  The driver runs under Dev (we do not have our own io manager). Is there a way for an application to make a NON POSIX ioctl call to this driver or will Dev screen all of those out?  Is there some generic ioctl call supported by Dev, that we could pass a flag to?  This would serve the same purpose.  We need to add the capability for a finer degree of control and status over our cards than STTY currently gives.  (We are trying to avoid writing an io manager).


Solution Yes, just have the application call dev_info(fd,...) to get the nid and pid of the driver.  Then send any message directly to the driver process. Thats how 'stty' sends special driver specific messages to drivers like Dev.ser and Dev.con.