TUNABLE_INT_FETCH
TUNABLE_INT_FETCH("kern.cam.scsi_delay", &delay);
TUNABLE_INT_FETCH(tmpstr, &softc->minimum_command_size);
TUNABLE_INT_FETCH(tmpstr, &softc->minimum_cmd_size);
if (TUNABLE_INT_FETCH(tunable_name, &irq)) {
TUNABLE_INT_FETCH("hw.tsc_cputimer_enable", &enable);
TUNABLE_INT_FETCH("hw.acpi.override_isa_irq_polarity",
TUNABLE_INT_FETCH("hw.acpi.apple_darwin_osi", &darwin_osi);
TUNABLE_INT_FETCH("drm.debug", &drm_debug);
TUNABLE_INT_FETCH(tn, &sc->sc_offset);
TUNABLE_INT_FETCH("hw.mpr.debug_level", &sc->mpr_debug);
TUNABLE_INT_FETCH("hw.mpr.msi_enable", &sc->msi_enable);
TUNABLE_INT_FETCH("hw.mpr.max_chains", &sc->max_chains);
TUNABLE_INT_FETCH("hw.mpr.max_io_pages", &sc->max_io_pages);
TUNABLE_INT_FETCH("hw.mpr.enable_ssu", &sc->enable_ssu);
TUNABLE_INT_FETCH("hw.mpr.spinup_wait_time", &sc->spinup_wait_time);
TUNABLE_INT_FETCH("hw.mpr.use_phy_num", &sc->use_phynum);
TUNABLE_INT_FETCH("hw.mpr.max_reqframes", &sc->max_reqframes);
TUNABLE_INT_FETCH("hw.mpr.max_prireqframes", &sc->max_prireqframes);
TUNABLE_INT_FETCH("hw.mpr.max_replyframes", &sc->max_replyframes);
TUNABLE_INT_FETCH("hw.mpr.max_evtframes", &sc->max_evtframes);
TUNABLE_INT_FETCH(tmpstr, &sc->mpr_debug);
TUNABLE_INT_FETCH(tmpstr, &sc->msi_enable);
TUNABLE_INT_FETCH(tmpstr, &sc->max_chains);
TUNABLE_INT_FETCH(tmpstr, &sc->max_io_pages);
TUNABLE_INT_FETCH(tmpstr, &sc->enable_ssu);
TUNABLE_INT_FETCH(tmpstr, &sc->spinup_wait_time);
TUNABLE_INT_FETCH(tmpstr, &sc->use_phynum);
TUNABLE_INT_FETCH(tmpstr, &sc->max_reqframes);
TUNABLE_INT_FETCH(tmpstr, &sc->max_prireqframes);
TUNABLE_INT_FETCH(tmpstr, &sc->max_replyframes);
TUNABLE_INT_FETCH(tmpstr, &sc->max_evtframes);
TUNABLE_INT_FETCH("hw.mps.debug_level", &sc->mps_debug);
TUNABLE_INT_FETCH("hw.mps.disable_msix", &sc->disable_msix);
TUNABLE_INT_FETCH("hw.mps.msi.enable", &sc->enable_msi);
TUNABLE_INT_FETCH("hw.mps.max_chains", &sc->max_chains);
TUNABLE_INT_FETCH(tmpstr, &sc->mps_debug);
TUNABLE_INT_FETCH(tmpstr, &sc->disable_msix);
TUNABLE_INT_FETCH(tmpstr, &sc->enable_msi);
TUNABLE_INT_FETCH(tmpstr, &sc->max_chains);
TUNABLE_INT_FETCH("hw.mrsas.mfi_enable", &mrsas_mfi_enable);
TUNABLE_INT_FETCH("hw.mrsas.debug_level", &sc->mrsas_debug);
TUNABLE_INT_FETCH(tmpstr, &sc->mrsas_debug);
TUNABLE_INT_FETCH("hw.vtballoon.debug_level", &sc->vtballoon_debug);
TUNABLE_INT_FETCH(tmpstr, &sc->vtballoon_debug);
TUNABLE_INT_FETCH(path, &def);
TUNABLE_INT_FETCH("hw.vtscsi.debug_level", &sc->vtscsi_debug);
TUNABLE_INT_FETCH(tmpstr, &sc->vtscsi_debug);
TUNABLE_INT_FETCH(cfg, &value);
TUNABLE_INT_FETCH(path, &def);
TUNABLE_INT_FETCH(d->path, d->var);
TUNABLE_INT_FETCH("kern.hz", &hz);
TUNABLE_INT_FETCH("kern.stathz", &stathz);
TUNABLE_INT_FETCH("kern.maxusers", &maxusers);
TUNABLE_INT_FETCH("kern.maxproc", &maxproc);
TUNABLE_INT_FETCH("kern.maxfiles", &maxfiles);
TUNABLE_INT_FETCH("kern.maxposixlocksperuid", &maxposixlocksperuid);
TUNABLE_INT_FETCH("kern.ncallout", &ncallout);
TUNABLE_INT_FETCH("kern.ipc.nmbclusters", &nmbclusters);
TUNABLE_INT_FETCH("kern.ipc.mjclph_cachefrac", &mjclph_cachefrac);
TUNABLE_INT_FETCH("kern.ipc.mjcl_cachefrac", &mjcl_cachefrac);
TUNABLE_INT_FETCH("kern.ipc.mclph_cachefrac", &mclph_cachefrac);
TUNABLE_INT_FETCH("kern.ipc.mcl_cachefrac", &mcl_cachefrac);
TUNABLE_INT_FETCH("kern.ipc.nmbjclusters", &nmbjclusters);
TUNABLE_INT_FETCH("kern.ipc.nmbufs", &nmbufs);
TUNABLE_INT_FETCH("kern.ipc.maxsockets", &maxsockets);
TUNABLE_INT_FETCH(qlenname, &qlen);
TUNABLE_INT_FETCH("net.inet.tcp.tcbhashsize", &hashsize);
TUNABLE_INT_FETCH("net.inet.tcp.reass.maxsegments", &tcp_reass_maxseg);
TUNABLE_INT_FETCH("net.inet.tcp.syncache.hashsize",
TUNABLE_INT_FETCH("net.inet.tcp.syncache.cachelimit",
TUNABLE_INT_FETCH("net.inet.tcp.syncache.bucketlimit",
TUNABLE_INT_FETCH("hw.ioapic_probe", &probe);
TUNABLE_INT_FETCH("hw.x2apic_enable", &x2apic_enable);
TUNABLE_INT_FETCH("hw.ap_max", &ap_max);
TUNABLE_INT_FETCH("hw.elcr_disable", &disable);
TUNABLE_INT_FETCH("hw.tsc_cputimer_force", &tsc_mpsync);
TUNABLE_INT_FETCH("hw.i8254.walltimer", &which);
TUNABLE_INT_FETCH("hw.tsc_cputimer_force", &tsc_invariant);
TUNABLE_INT_FETCH("hw.cpu_stdext_disable", &cpu_stdext_disable);
TUNABLE_INT_FETCH("hw.clflush_enable", &hw_clflush_enable);
TUNABLE_INT_FETCH("hw.apic_io_enable", &ioapic_enable); /* for compat */
TUNABLE_INT_FETCH("hw.ioapic_enable", &ioapic_enable);
TUNABLE_INT_FETCH("hw.lapic_enable", &lapic_enable);
TUNABLE_INT_FETCH("machdep.cpu_idle_hlt", &cpu_idle_hlt);
TUNABLE_INT_FETCH("machdep.cpu.mwait.bm_sts", &bm_sts);
TUNABLE_INT_FETCH("machdep.pmap_fast_kernel_cpusync",
TUNABLE_INT_FETCH("machdep.pmap_nx_enable", &pmap_nx_enable);
TUNABLE_INT_FETCH("machdep.mds_mitigation", &mds_mitigation);
TUNABLE_INT_FETCH("machdep.spectre_mitigation",
TUNABLE_INT_FETCH((path), &(var)); \