All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] rt_alarm_create
@ 2009-04-24 21:37 Wayne Call
  2009-04-24 22:11 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Wayne Call @ 2009-04-24 21:37 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

There are two rt_alarm_create functions.  One is for the kernel space and
the other is for user space.  

 

I have a linux driver that has an interrupt service routine.  When the
driver is loaded using insmod, it executes the rt_alarm_create.  When the
interrupt is triggered, the interrupt service routine executes the
rt_alarm_start function.  When the rt_alarm_start function expires, it
executes the alarm handler code.  All this code is executed in kernel space.


 

What I would like to do is create a user application that executes the alarm
handler code rather than the linux driver in kernel space.  If the
rt_alarm_create is executed in kernel space, is there a way to pass the
alarm descriptor to user space?

 

Wayne

 


[-- Attachment #2: Type: text/html, Size: 2585 bytes --]

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

* Re: [Xenomai-help] rt_alarm_create
  2009-04-24 21:37 [Xenomai-help] rt_alarm_create Wayne Call
@ 2009-04-24 22:11 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2009-04-24 22:11 UTC (permalink / raw)
  To: wcall; +Cc: xenomai

On Fri, 2009-04-24 at 15:37 -0600, Wayne Call wrote:
> There are two rt_alarm_create functions.  One is for the kernel space
> and the other is for user space.  
> 
>  
> 
> I have a linux driver that has an interrupt service routine.  When the
> driver is loaded using insmod, it executes the rt_alarm_create.  When
> the interrupt is triggered, the interrupt service routine executes the
> rt_alarm_start function.  When the rt_alarm_start function expires, it
> executes the alarm handler code.  All this code is executed in kernel
> space. 
> 
>  
> 
> What I would like to do is create a user application that executes the
> alarm handler code rather than the linux driver in kernel space.  If
> the rt_alarm_create is executed in kernel space, is there a way to
> pass the alarm descriptor to user space?

You should use rt_alarm_create() from user-space. There is no binding
possible between alarms created in kernel space to userland.

> 
>  
> 
> Wayne
> 
>  
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
-- 
Philippe.




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

end of thread, other threads:[~2009-04-24 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-24 21:37 [Xenomai-help] rt_alarm_create Wayne Call
2009-04-24 22:11 ` 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.