OpenQNX :: The QNX Community Portal

Oct 12, 2008 - 06:03 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 19 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
stjosue
Post subject: ioslib vxworks  PostPosted: Mar 17, 2006 - 12:06 AM
Active Member


Joined: Mar 06, 2006
Posts: 45

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.
 
 View user's profile Send private message  
Reply with quote Back to top
Mario Charest
Post subject: Re: ioslib vxworks  PostPosted: Mar 21, 2006 - 06:05 PM
Guest





"stjosue" <stjosue@gmail-dot-com.no-spam.invalid> wrote in message
news:dvd57m$ldt$1@inn.qnx.com...
Quote:
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.
 
   
Reply with quote Back to top
Michael Tasche
Post subject: Re: ioslib vxworks  PostPosted: Apr 02, 2006 - 08:35 AM
Guest





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:
Quote:
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.
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.