HomeFreeBSD

xen/intr: use struct xenisrc * as xen_intr_handle_t

Description

xen/intr: use struct xenisrc * as xen_intr_handle_t

Since xen_intr_handle_t is meant to be an opaque handle and the only
use is retrieving the associated struct xenisrc *, directly use it as
the opaque handler.

Also add a wrapper function for converting the other direction. If some
other value becomes appropriate in the future, these two functions will
be the only spots needing modification.

Reviewed by: mhorne, royger
Differential Revision: https://reviews.freebsd.org/D29500

Details

Provenance
ehem_freebsd_m5p.comAuthored on Apr 6 2021, 8:30 AM
roygerCommitted on Jul 28 2021, 3:27 PM
Reviewer
mhorne
Differential Revision
D29500: xen/intr: use struct xenisrc * as xen_intr_handle_t
Parents
rGd3705b5a7fac: xen/control: gate x86 specific code in the preprocessor
Branches
Unknown
Tags
Unknown