All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] How to use rtdm_(io/m)map_to_user
@ 2013-04-22 13:10 Victor Hiairrassary
  2013-04-23 11:25 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 6+ messages in thread
From: Victor Hiairrassary @ 2013-04-22 13:10 UTC (permalink / raw)
  To: xenomai

Hello all,

This is my first post on this mailing list. I am really new with 
xenomai, only
few month ago.

Currently we have a real-time application using xenomai which interacts with
hardware directly by mmaping /dev/mem.

Now, we want to write a real-time device driver that will simulate the 
hardware.
For keeping the same interface than /dev/mem, a conventional linux device
driver would register an mmap file operation, but this is not possible with
rtdm.

But I have seen in xenomai api the functions : rtdm_mmap_to_user and
rtdm_iomap_to_user. Could you explain how to use them, i.e. where do we 
need to
put the function call, do we need to use ioctl file operation to get mmaped
address, etc? Maybe you have an example (I have found nothing in xenomai 
trunk)?

In a near future, instead of use /dev/mem, we plan to use a real-time device
driver and rtdm_iomap_to_user (only to have the same code in client
application). In this case, is it necessary and possible to call
request_mem_region() in the real-time device driver?

Best regards,
Victor Hiairrassary


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-24 19:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-22 13:10 [Xenomai] How to use rtdm_(io/m)map_to_user Victor Hiairrassary
2013-04-23 11:25 ` Gilles Chanteperdrix
2013-04-23 12:50   ` Victor Hiairrassary
2013-04-23 18:29     ` Gilles Chanteperdrix
2013-04-24 16:38       ` Victor Hiairrassary
2013-04-24 19:37         ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.