Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 23 Nov 2002 14:53:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 23 Nov 2002 14:53:40 -0500 Received: from [203.199.93.15] ([203.199.93.15]:6923 "EHLO WS0005.indiatimes.com") by vger.kernel.org with ESMTP id ; Sat, 23 Nov 2002 14:53:39 -0500 From: "arun4linux" Message-Id: <200211231954.BAA23235@WS0005.indiatimes.com> To: "Manfred Spraul" CC: "linux-kernel" Reply-To: "arun4linux" Subject: Re: Re: switching to interrupt contex when no interrupts Date: Sun, 24 Nov 2002 01:33:21 +0530 X-URL: http://indiatimes.com Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1445 Lines: 46 Hello, <>I want to simulate a PCI based controller and its behaviour, interrupts,etc.. I want to simulate the interrupts in sequence and want to process them in my driver software. <>My requirement is to simulate interrupts and not to disable interrupts. Thanks & Warm Regards Arun "Manfred Spraul" wrote: > > > I'd like to force my kernel module to run at interrupt context at some specific \ >points/time and then come back from interrrupt contex after executing that particular \ >portion of code.. > > What do you want to do? local_irq_save()/local_irq_restore() temporarily disable the interrupt processing of the current cpu. Note that other cpus in the system continue to handle interrupts. disable_irq(x) disables the interrupt processing for the interrupt line x. For example, my network drivers use disable_irq() to synchronize interrupt processing and error recovery. -- Manfred Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/