Skip to contentSkip to conversation

priority of alarm handler?

Xenomai Tom Z 2 participants 2 messages May 6, 2013 – May 7, 2013

lore
Share & tools
lore

Tom Z

author
#0 lore raw

Hi, I have question regarding using
int rt_alarm_create     (     RT_ALARM *      alarm, const char *      name,
        rt_alarm_t      handler,
        void *      cookie
    )

If I installed a kernel-space handler to an RT_ALARM object, then when this handler is executing, will this handler be preempted by other higher-priority interrupts? If yes, can I prevent this from happening?

Thanks,
Tom

#1 lore raw
Quoted 9 lines · Tom Z

Hi, I have question regarding using
int rt_alarm_create ( RT_ALARM * alarm,
const char * name,
rt_alarm_t handler,
void * cookie
)

If I installed a kernel-space handler to an RT_ALARM object, then when this handler is executing, will this handler be preempted by other higher-priority interrupts? If yes, can I prevent this from happening?

No, it won't be preempted by any other interrupt, unless you unmask it manually, which you should not do. In addition, kernel-based alarm handlers are serialized.

Quoted 8 lines

Thanks,
Tom
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Signature · 1 line
Philippe.