Skip site navigation (1)Skip section navigation (2)
Date:      12 Nov 2001 17:06:32 +0000
From:      Sansonetti Laurent <pinux@teledisnet.be>
To:        freebsd-hackers@freebsd.org
Subject:   Hijack lpt_intr() from lpt driver
Message-ID:  <1005584796.830.6.camel@teneriel.teledisnet.be>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1005584796.830.6.camel>