HomeFreeBSD

intr/x86: add ioapic_drv_t to reduce number of casts in IO-APIC implementation

Description

intr/x86: add ioapic_drv_t to reduce number of casts in IO-APIC implementation

void * is handy when you truly do not care about the type. Yet there is
so much casting back and forth in the IO-APIC code as to be hazardous.
Achieve better static checking by the compiler using a typedef.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1457

Details

Provenance
ehem_freebsd_m5p.comAuthored on Oct 1 2024, 7:56 PM
impCommitted on Dec 11 2024, 11:14 PM
Parents
rG0e8a36a2ab12: mount_nfs.c: Add an NFS mount option to set a port# for Mount
Branches
Unknown
Tags
Unknown