Skip navigation.
Home
The QNX Community Portal

View topic - How to pass data from driver to Application?

How to pass data from driver to Application?

For discussion of realtime and/or embedded programming.

How to pass data from driver to Application?

Postby jewdongkuo » Mon Jul 20, 2009 11:13 pm

Hi,

I am new to QNX development. I am trying to develop a QNX driver which allocated 8K DMA capable non-paged memory pool and allow to be modified by user application.

I found the article under

http://www.openqnx.com/PNphpBB2+viewtop ... -code.html

which seems to be what I need. But there is no sample program. I will very appreciate if you could provide me with some URLs or tutorial.

I am using QNX 6.4.1 with 4.6 QNX Momentics IDE.

Thank you very much!
Jew-Dong
jewdongkuo
New Member
 
Posts: 7
Joined: Mon Jul 20, 2009 11:03 pm

RE: How to pass data from driver to Application?

Postby mario » Tue Jul 21, 2009 3:47 am

The documentation on mmap() should be a pretty good start. I think there is a sample.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

RE: How to pass data from driver to Application?

Postby plauchu » Mon Sep 14, 2009 5:54 pm

The first is bulking data from Driver to shared memory, with mmap() a litttle example http://plauchu.wordpress.com/2009/09/11 ... ry-in-qnx/

The second developing a Resource Manager and making an access directly with a reply data at open a file descriptor... or with mmap too.

http://www.qnx.com/developers/docs/6.3. ... esmgr.html

I don't know but it's just an idea.
plauchu
Active Member
 
Posts: 14
Joined: Tue Jul 21, 2009 6:19 pm
Location: Monterrey, Mexico

Thanks for the Information.

Postby jewdongkuo » Mon Sep 14, 2009 6:22 pm

Hi plauchu,

I very appreciate for the valuable information. This will be very helpful!

Thanks,
Jew-Dong
jewdongkuo
New Member
 
Posts: 7
Joined: Mon Jul 20, 2009 11:03 pm


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 1 guest