From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48CE3096.7040502@domain.hid> Date: Mon, 15 Sep 2008 11:53:26 +0200 From: Harco Kuppens MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------050800000900050101000500" Subject: [Xenomai-help] probably error in api document List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Cc: "hooman >> \"Hooman, J.\"" This is a multi-part message in MIME format. --------------050800000900050101000500 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, 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? Best Regards, Harco Kuppens --------------050800000900050101000500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,

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?

Best Regards,
Harco Kuppens

--------------050800000900050101000500--