To aid you in generating a wrapper for your loadable driver (or other loadable module type), DLKM provides a set of macros in sys/moddefs.h and documented on the _load(D2) manual page.