1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00

intr: Document how to get the interrupt frame

Document that the only way to get the interrupt thread is to use
curthread->td_intr_frame, rather than the old-style of having a NULL
pointer for the interrupt thread. As of 38c35248fe, support for that
has been removed. I neglected to update that commit message with these
details.

Suggested by: mhorne
This commit is contained in:
Warner Losh 2024-05-10 15:41:36 -06:00
parent 38c35248fe
commit a2409f1737

View File

@ -1346,7 +1346,10 @@ ithread_loop(void *arg)
*
* Input:
* o ie: the event connected to this interrupt.
* o frame: the current trap frame.
--------------------------------------------------------------------------------
* o frame: the current trap frame. If the client interrupt
* handler needs this frame, they should get it
* via curthread->td_intr_frame.
*
* Return value:
* o 0: everything ok.