All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Timer support in user-space
@ 2012-12-12 16:26 dave.joynson
  2012-12-12 16:43 ` Philippe Gerum
  2012-12-15 12:11 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 6+ messages in thread
From: dave.joynson @ 2012-12-12 16:26 UTC (permalink / raw)
  To: xenomai

Hi,
I have recently started to use Xenomai on Raspberry Pi. My experience with 
Linux Kernel building etc. is zero so I downloaded the pre-built image 
from powet.eu. I have successfully created a cross compile environment to 
create user-space applications using the Posix skin. While tracking down 
some mode changes I came across the limitation of Posix skin Timers in 
that the timer expiry creates a signal which causes a mode switch.
I have considered creating an application layer timer module using a pool 
of threads that use nanosleep and a callback function on expiry. Careful 
management of these threads using a custom timer API could fulfill my 
requirements.
While exploring the documentation for alternatives, I noticed that the 
RTDM Driver Development API provides access to native timers that would 
seem to perform the functionality that I need, On trying to use them in a 
user-space application, however, it seems that they may only be used in 
kernel-space. This leads me to the following question:

        Is the documentation incorrect for rtdm_timer_init() when it says 
it may be used in user-space tasks?

Dave Joynson
Alstom Grid | Research & Technology | Senior Research Technologist
Phone: +44 (0)1785 223 251 ext. 6577 | E-mail: dave.joynson@alstom.com
Office address: St Leonard Avenue - Stafford ST17 4LX - England
Site: www.alstom.com
** Please consider the environment before printing this e-mail **

P Before printing, please consider the environment!
ALSTOM Grid UK Limited, Registered in England and Wales No. 4955841. 
Registered Office St Leonards Avenue, Stafford, ST17 4LX

:._______________
CONFIDENTIALITY : This  e-mail  and  any attachments are confidential and 
may be privileged. If  you are not a named recipient, please notify the 
sender immediately and do not disclose the contents to another person, use 
it for any purpose or store or copy the information in any medium.

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

end of thread, other threads:[~2012-12-15 17:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-12 16:26 [Xenomai] Timer support in user-space dave.joynson
2012-12-12 16:43 ` Philippe Gerum
2012-12-14 10:33   ` dave.joynson
2012-12-14 16:05     ` Philippe Gerum
2012-12-15 12:11 ` Gilles Chanteperdrix
2012-12-15 17:21   ` Philippe Gerum

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.