Skip to contentSkip to conversation

rt_alarm_create

Xenomai-help Wayne Call 2 participants 2 messages Apr 24, 2009

lore
Share & tools
lore

Wayne Call

author
#0 lore raw

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

#1 lore raw
Quoted 14 lines · Wayne Call

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.

Quoted 4 lines

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.

Quoted 12 lines

Wayne

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.