From owner-freebsd-hackers Mon Nov 12 10:10:16 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 88AB537B405 for ; Mon, 12 Nov 2001 10:10:14 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.6/8.11.3) with ESMTP id fACIC0n01123; Mon, 12 Nov 2001 10:12:01 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200111121812.fACIC0n01123@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Sansonetti Laurent Cc: freebsd-hackers@freebsd.org Subject: Re: Hijack lpt_intr() from lpt driver In-reply-to: Your message of "12 Nov 2001 17:06:32 GMT." <1005584796.830.6.camel@teneriel.teledisnet.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 12 Nov 2001 10:12:00 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Don't do this; write your own ppbus driver and just claim the ppbus directly when you are 'active'. > Hi hackers, > > I have to hijack lpt_intr() from lpt device driver > (/sys/dev/ppbus/lpt.c) to measure latency. > > Is this right = > > BUS_TEARDOWN_INTR(old interrupt handler); > BUS_SETUP_INTR(new interrupt handler); > > ? > > In fact I could not get resource structure and the cookie from lpt > driver, so before doing bad things I would want to know if this is the > right way to hijack a hardware interrupt handler. > > Thanks in advance, > > > -- > Sansonetti Laurent - http://lrz.linuxbe.org > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message