Skip navigation.
Home
The QNX Community Portal

View topic - ioslib vxworks

ioslib vxworks

Read-only archive of qnx.porting (Discuss migrating applications from QNX4, VxWorks, PSOS, or Linux to QNX Neutrino) at inn.qnx.com

ioslib vxworks

Postby stjosue » Fri Mar 17, 2006 12:06 am

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
Active Member
 
Posts: 45
Joined: Mon Mar 06, 2006 6:33 pm

Re: ioslib vxworks

Postby Mario Charest » Tue Mar 21, 2006 6:05 pm

"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.
Mario Charest
 

Re: ioslib vxworks

Postby Michael Tasche » Sun Apr 02, 2006 8:35 am

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.
Michael Tasche
 


Return to qnx.porting

Who is online

Users browsing this forum: No registered users and 1 guest

cron