From owner-freebsd-threads@FreeBSD.ORG Fri Aug 12 07:45:23 2011 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B660106566C for ; Fri, 12 Aug 2011 07:45:23 +0000 (UTC) (envelope-from adi.ninad@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id DC90E8FC1B for ; Fri, 12 Aug 2011 07:45:22 +0000 (UTC) Received: by ywo32 with SMTP id 32so972852ywo.13 for ; Fri, 12 Aug 2011 00:45:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=HUFd8Up5HUdUL/B+PLZy1VE6nBGb2I/+jQegf9ZIddw=; b=BlUt92cWUO98gfW1pTzt1Rkn10eP2WeY0yp2B+ep4NDowF0rEUFmLTzDHpb+Hcah8P +ieoGavD1b3pF/V5/MdCWoLKajMtcrWS84msh7nz8EEEZXnpaHU/RMzj2LzP1RgsvImj C0+FwQgWplj9dqxt1CHxWtyvQifK6lpLNm+xI= MIME-Version: 1.0 Received: by 10.43.132.131 with SMTP id hu3mr68749icc.185.1313135122006; Fri, 12 Aug 2011 00:45:22 -0700 (PDT) Received: by 10.231.63.198 with HTTP; Fri, 12 Aug 2011 00:45:21 -0700 (PDT) In-Reply-To: <4E44CBA6.9050809@freebsd.org> References: <4E44CBA6.9050809@freebsd.org> Date: Fri, 12 Aug 2011 13:15:21 +0530 Message-ID: From: Ninad Adi To: Julian Elischer X-Mailman-Approved-At: Fri, 12 Aug 2011 11:18:13 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "freebsd-threads@freebsd.org" Subject: Re: Urgent interrupt thread X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2011 07:45:23 -0000 So in the routine bus_setup_intr the isr runs as ithread but then if its a thread why its not allowed to sleep it aquires mutex lock , disables all interrupts and continues. My last question is in that case do we need to Use taskqueues or we can completely write the Isr in one thread itself without using deferring Primitives. I.e can we refrain from using deferring mechanism. awaiting the reply. Ninad Adi. On Friday, August 12, 2011, Julian Elischer wrote: > On 8/11/11 3:13 AM, Ninad Adi wrote: >> >> To, >> Freebsd greats, >> >> Dear sirs, >> In freebsd 8.2 kernel architecture >> Do interrupt handlers run as threads by >> default or do they run in interrupt context ?? >> >> Ninad. >> Freebsd developer. >> _______________________________________________ >> freebsd-threads@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-threads < http://lists.freebsd.org/mailman/listinfo/freebsd-threads> >> To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org " >> > you have the choice to do either. > > > key words to look up are 'fast' interrupts and "interrrupt threads" > > I've not used either for many years. so I hope that helps enough that you can find hte right answer. > > > >