I noticed in the Xenomai native API that the longer rt_create_intr :
int rt_intr_create
(RT_INTR *intr, const char *name, unsigned irq, rt_isr_t isr, rt_iack_t
iack, int mode)
says in its documentation :
This service can be called from:
Kernel module initialization/cleanup code
Kernel-based task
User-space task
I find it strange that it could be called from a user-space task.
I looked in /usr/xenomai/include/native/intr.h but there it really is
defined when __KERNEL__ is defined.
So I guess this is an error in the API documention?