Message-ID: <50CB4D73.5090905@xenomai.org> Date: Fri, 14 Dec 2012 17:01:55 +0100 From: Philippe Gerum MIME-Version: 1.0 References: <1355499196.2190.23.camel@herbert.er.corscience.de> In-Reply-To: <1355499196.2190.23.camel@herbert.er.corscience.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] Question about IPIPE_IRQF_NOSYNC List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tim Niemeyer Cc: xenomai On 12/14/2012 04:33 PM, Tim Niemeyer wrote: > Hi > > I'm using Xenomai 2.6.1 with linux 3.4.14 (with latest 'for-core-3.4' > Adeos) on an omap3 board. > > While hunting a gpio-irq latency i tried to understand the adeos chained > interrupt code. I'm currently stuck at ipipe_handle_demuxed_irq() > because i didn't understand the IPIPE_IRQF_NOSYNC-Flag: > > static inline void ipipe_handle_demuxed_irq(unsigned int cascade_irq) > { > .. > __ipipe_dispatch_irq(cascade_irq, IPIPE_IRQF_NOSYNC); > .. > } > This means "mark the interrupt as pending, but do not attempt to run the handler". Normally, __ipipe_dispatch_irq would eventually check and figure out that some interrupt is pending, and provided the context allows, it would run the handlers for each interrupt flagged as such, by calling __ipipe_sync_pipeline. > Maybe someone can give me hint or point me to the right documentation, > so that i can better understand the code for __ipipe_dispatch_irq() ? > -- Philippe.