OpenQNX :: The QNX Community Portal

Oct 12, 2008 - 06:07 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 17 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
juro
Post subject: devctl messages, return data with pointers  PostPosted: Sep 19, 2007 - 08:51 AM
New Member


Joined: Sep 18, 2007
Posts: 3

Hi all,

I have test application and resouce manager and I use devctlv to send some data with pointers from application to resouce manager and in this way work ok.But I also need to return some pointer data from resouce manager to the test application.It is possible to do and how can I solve this problem?

Thanks

Juraj
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: devctl messages, return data with pointers  PostPosted: Sep 19, 2007 - 03:21 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

I'm not sure what use pointers would be between separate processes, unless you are using shared memory, but in any case, with message passing data goes both ways. Likewise devctl can receive and send back data. Are you having trouble getting devctl to work right? Make sure you are using the right macros to define your commands.
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
juro
Post subject: RE: devctl messages, return data with pointers  PostPosted: Sep 19, 2007 - 04:40 PM
New Member


Joined: Sep 18, 2007
Posts: 3

hi,
I use devctlv not devctl because of data with pointers.devctlv is proposed to handle structure data with some pointers inside.In resouce manager I can read this data which was send from test application in call back function.But I don't know how to send return data back to the test application.

Thanks

Juraj
 
 View user's profile Send private message  
Reply with quote Back to top
maschoen
Post subject: RE: devctl messages, return data with pointers  PostPosted: Sep 19, 2007 - 05:45 PM
QNX Master


Joined: Jun 25, 2003
Posts: 1099

That's interesting. I can't find devctlv in the Help on 6.3.3?
 
 View user's profile Send private message Send e-mail Visit poster's website  
Reply with quote Back to top
David Gibbs
Post subject: Re: devctl messages, return data with pointers  PostPosted: Oct 09, 2007 - 09:00 PM
Guest





juro <juraj.frank@naex-dot-sk.no-spam.invalid> wrote:
Quote:
hi,
I use devctlv not devctl because of data with pointers.devctlv is
proposed to handle structure data with some pointers inside.In
resouce manager I can read this data which was send from test
application in call back function.But I don't know how to send return
data back to the test application.

Just MsgReply() with the io_devctl_reply header followed by the data
that you want to return. (Or, MsgReplyv().)

-David
--
David Gibbs
QNX Training Services
dagibbs@qnx.com
 
   
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.