ioslib vxworks

hi friends.

NAME
iosLib - I/O system library vxWorks system

ROUTINES

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
driver-specific value


someone can tell me what functions are same or equivalents in QNX, the
functions of above.

please help me

thanks friends.

“stjosue” <stjosue@gmail-dot-com.no-spam.invalid> wrote in message
news:dvd57m$ldt$1@inn.qnx.com

hi friends.

NAME
iosLib - I/O system library vxWorks system

ROUTINES

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
driver-specific value


someone can tell me what functions are same or equivalents in QNX, the
functions of above.

Most don’t really apply, there is no direct replacement.

Hi,

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:

  1. If your original driver can block, you have to learn how to reply to
    a message asynchronously.
  2. If your orig. driver uses timers, learn how to generate pulses with
    the qnx posix timers.
  3. If your orig. driver has an irq handler, learn how to generate a
    pulse from an irq handler.

-Michael


stjosue schrieb:

hi friends.

NAME
iosLib - I/O system library vxWorks system

ROUTINES

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
driver-specific value


someone can tell me what functions are same or equivalents in QNX, the
functions of above.

please help me

thanks friends.