From owner-freebsd-drivers@FreeBSD.ORG Fri Mar 16 02:06:21 2012 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF76E106566B; Fri, 16 Mar 2012 02:06:21 +0000 (UTC) (envelope-from yong.fan@exar.com) Received: from smtp1.exar.com (webmail.exar.com [204.154.183.83]) by mx1.freebsd.org (Postfix) with ESMTP id 90BF98FC16; Fri, 16 Mar 2012 02:06:18 +0000 (UTC) Received: from FRE1-CAS2.hq.exar.com (10.127.1.158) by FRE1-CAS.hq.exar.com (10.127.1.162) with Microsoft SMTP Server (TLS) id 8.1.436.0; Thu, 15 Mar 2012 19:06:18 -0700 Received: from HZU1EXCH02.hq.exar.com (172.18.10.52) by FRE1-CAS2.hq.exar.com (10.127.1.158) with Microsoft SMTP Server (TLS) id 8.1.436.0; Thu, 15 Mar 2012 19:06:17 -0700 Received: from HZU1EXCH02.hq.exar.com ([fe80::5528:f080:2385:1c90]) by HZU1EXCH02.hq.exar.com ([fe80::5528:f080:2385:1c90%13]) with mapi; Fri, 16 Mar 2012 10:06:14 +0800 From: Yong Fan To: "freebsd-drivers@freebsd.org" Date: Fri, 16 Mar 2012 10:06:13 +0800 Thread-Topic: How can I decide whether my code is running in interrupt context or not? Thread-Index: Ac0DGV0OX75nc9eZRhmtkw2kDgQB5Q== Message-ID: <88AB8EB2D3F1D249AE07FAFFF17A396F0384C3956A@HZU1EXCH02.hq.exar.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, zh-CN MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "drivers@FreeBSD.org" Subject: How can I decide whether my code is running in interrupt context or not? X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 02:06:22 -0000 Hi all, In Linux, I can use in_interrupt() function. FreeBSD has such a similar kernel function for drivers? Thanks ________________________________ The information and any attached documents contained in this message may be confidential and/or legally privileged. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, dissemination, or reproduction is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender immediately by return e-mail and destroy all copies of the original message.