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 [EMAIL PROTECTED]
> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to