From: Stephane Grosjean Message-ID: Date: Tue, 21 Jun 2016 11:22:37 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Subject: [Xenomai] Xenomai 3 vs 2.6: rtdm_irq_request() calling task context change List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Hi, https://xenomai.org/migrating-from-xenomai-2-x-to-3-x/ says: "rtdm_irq_request/free() and rtdm_irq_enable/disable() call pairs must be called from a Linux task context, which is a restriction that did not exist previously with Xenomai 2.x." and, a few lower lines: "Since allocating, releasing, enabling or disabling real-time interrupts is most commonly done from driver initialization/cleanup context already," I was not aware about these Linux kernel driver requirements... On the contrary, regarding linux-can drivers (for example), the IRQ is requested when the device is opened only, not when it is probed. An it is freed when the device is closed. In my mind, this was a good choice because it avoids useless chained ISRs during the times the devices are not opened. So, the above assumption is a little rough, IMHO... Anyway, this is how new things are... Any advice for us not to change the whole architecture of our driver will be welcome. Stéphane -- PEAK-System Technik GmbH Sitz der Gesellschaft Darmstadt - HRB 9183 Geschaeftsfuehrung: A.Gach, U.Wilhelm --