it seems to me, that you want to port a vxWorks device driver to QNX.
The iosLib functions are used to connect a driver to the i/o-system of
vxWorks. This is basic vxWorks stuff and one of the architectural poor
components of the OS. It simply connects your driver’s
open/close/read/write/ioctl handlers to the system and attaches your
open handler to device name(s).
So learn the basics about QNX resource mangers, take sample code from
the docs and build a 1st dummy resource manager.
Than port your read/write/ioctl handlers to QNX.
Following things have to be changed:
- If your original driver can block, you have to learn how to reply to
a message asynchronously.
- If your orig. driver uses timers, learn how to generate pulses with
the qnx posix timers.
- If your orig. driver has an irq handler, learn how to generate a
pulse from an irq handler.
iosLib - I/O system library vxWorks system
iosInit( ) - initialize the I/O system
iosDrvInstall( ) - install an I/O driver
iosDrvRemove( ) - remove an I/O driver
iosDevAdd( ) - add a device to the I/O system
iosDevDelete( ) - delete a device from the I/O system
iosDevFind( ) - find an I/O device in the device list
iosFdValue( ) - validate an open file descriptor and return the
someone can tell me what functions are same or equivalents in QNX, the
functions of above.
please help me