Date: Mon, 25 Aug 1997 23:02:42 -0700 (PDT) From: Pat Bozeman <peb@george.lbl.gov> To: Terry Lambert <terry@lambert.org> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: lkm.h MOD_DEV & DISPATCH Message-ID: <Pine.SOL.3.95.970825225804.4360A-100000@george.lbl.gov> In-Reply-To: <199708260311.UAA02640@phaeton.artisoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 25 Aug 1997, Terry Lambert wrote: > > Why does MOD_DEV concatinate the name of the device with _module when > > none of the other module types do? This leads to a conflict with DISPATCH > > which does not expect the name to be concatinated to _module. > > To avoid namespace conflicts in drivers which export multiple module > types. Having a static value only saves you from inter-module > conflicts. The intra-module conflicts can still byte you. So, does one just not use DISPATCH with MOD_DEV? Not that this is a big deal, but coding your own version of the module entry point ala DISPTACH requires that you know how MOD_DEV creates the name of module structure which results in code which may not be portable between versions of lkm.h How about some using a macro in MOD_DEV to build the name that a module writter can also use to access the static structure created in MOD_DEV. -- Patrick Bozeman PBozeman@lbl.gov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.95.970825225804.4360A-100000>