⬢ DragonFlyBSD Kernel Audit
DF-5042 / advansys_shim.c
← back to finding ↓ download raw
/*
 * advansys_shim.c — pull in sys/dev/disk/advansys/advansys.c VERBATIM with a
 * single rename: adv_free()'s bus_dma_tag_destroy() calls are routed to the
 * observation shim in wrapper.c (fk_bus_dma_tag_destroy), which counts and
 * forwards to the real kernel function.  Everything else in advansys.c
 * (adv_free's switch, adv_init, adv_attach, adv_map, ...) is stock code.
 *
 * NOTE: the shim rename must be a #define here (not a command-line -D),
 * because DFly make treats target-specific CFLAGS as a replacement for the
 * kmod.mk global flags.
 */
#include "fkdecl.h"

#define bus_dma_tag_destroy fk_bus_dma_tag_destroy

#include "advansys.c"