Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2020 19:31:48 +0530
From:      "Kamal R. Prasad" <kamalpr@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        kamalp@acm.org, freebsd-arm@freebsd.org
Subject:   Re: INTR_FAST
Message-ID:  <CAK=yUGL69NrsqUMzXmCrW1pfhY_BZmtjr-zgMpZig9Om7H65%2Bg@mail.gmail.com>
In-Reply-To: <7ed79c1d-2d66-5011-286f-8dcac058f7d5@selasky.org>
References:  <CAK=yUG%2B5p1VAsmLtdEsFuw%2BvbsAJz55E_EV8X-ePMVZVR3p05g@mail.gmail.com> <7ed79c1d-2d66-5011-286f-8dcac058f7d5@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
ok i got the answer from the man page
https://www.freebsd.org/cgi/man.cgi?query=3Dbus_setup_intr&apropos=3D0&sekt=
ion=3D0&manpath=3DFreeBSD+8.1-RELEASE&format=3Dhtml

is it common practice to move clock and serial io interrupt handlers to the
filter handler?

thanks
-kamal


On Thu, Aug 27, 2020 at 7:23 PM Hans Petter Selasky <hps@selasky.org> wrote=
:

> On 2020-08-27 15:50, Kamal R. Prasad wrote:
> > "These interrupt handlers are currently misnamed =E2=80=9Cfast=E2=80=9D=
 interrupt
> handlers
> > since the INTR_FAST flag used in earlier versions of the kernel is used
> to
> > mark these handlers. The only interrupts which currently use these type=
s
> of
> > interrupt handlers are clock interrupts and serial I/O device
> interrupts."
> >
> > I want to use INTR_FAST for my spi controller, but i find that it is no=
t
> > defined on freebsd stable11. Is INTR_EXCL related in any way to
> INTR_FAST?
> > if not, how do I setup a fast interrupt handler?
>
> Hi,
>
> When you setup and interrupt, there are two function pointers.
>
> One is the so-called interrupt filter, which is running in the fast
> context, and the other is the regular interrupt handler which is running
> from a thread context.
>
> --HPS
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAK=yUGL69NrsqUMzXmCrW1pfhY_BZmtjr-zgMpZig9Om7H65%2Bg>