Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2001 10:12:00 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        Sansonetti Laurent <pinux@teledisnet.be>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Hijack lpt_intr() from lpt driver 
Message-ID:  <200111121812.fACIC0n01123@mass.dis.org>
In-Reply-To: Your message of "12 Nov 2001 17:06:32 GMT." <1005584796.830.6.camel@teneriel.teledisnet.be> 

next in thread | previous in thread | raw e-mail | index | archive | help

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




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