Date: Mon, 4 May 2009 12:04:24 -0700 (PDT) From: Martin Shepherd Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: [Xenomai-help] Defensive IRQ allocation procedure. List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Am I correct in believing that an RTDM driver can safely call request_irq() from its non-realtime ioctl_nr() callback? I want to do this to verify that a non-realtime driver isn't using the same IRQ as my realtime device, before I attempt to use it in my RTDM driver, and as well as to prevent any non-realtime drivers from allocating that IRQ once I have started to use it. I can't do this at module initialization time, because I don't know which of our identical digital I/O boards is connected to what, until I perform I/O to them, and not all of them need interrupts. Thanks, Martin