diff options
author | dufault <dufault@FreeBSD.org> | 1997-04-06 10:49:22 +0000 |
---|---|---|
committer | dufault <dufault@FreeBSD.org> | 1997-04-06 10:49:22 +0000 |
commit | 7485dac765253c701a97a0ecb94fefd223c9ea62 (patch) | |
tree | b8a7e1922ebbca9e8fdbecaa9feaa545cbb0db0d /sys/modules/coff | |
parent | 6b27cec2a9f16e020db3f190354d5b1aa1f391fc (diff) | |
download | FreeBSD-src-7485dac765253c701a97a0ecb94fefd223c9ea62.zip FreeBSD-src-7485dac765253c701a97a0ecb94fefd223c9ea62.tar.gz |
Make MOD_* macros almost consistent:
Use the name argument almost the same in all LKM types. Maintain
the current behavior for the external (e.g., modstat) name for DEV,
EXEC, and MISC types being #name ## "_mod" and SYCALL and VFS only
#name. This is a candidate for change and I vote just the name without
the "_mod".
Change the DISPATCH macro to MOD_DISPATCH for consistency with the
other macros.
Add an LKM_ANON #define to eliminate the magic -1 and associated
signed/unsigned warnings.
Add MOD_PRIVATE to support wcd.c's poking around in the lkm structure.
Change source in tree to use the new interface.
Reviewed by: Bruce Evans
Diffstat (limited to 'sys/modules/coff')
-rw-r--r-- | sys/modules/coff/coff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/modules/coff/coff.c b/sys/modules/coff/coff.c index 672aa32..80c7e02 100644 --- a/sys/modules/coff/coff.c +++ b/sys/modules/coff/coff.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: coff.c,v 1.8 1997/02/22 12:47:47 peter Exp $ */ #include <sys/param.h> @@ -57,6 +57,6 @@ ibcs2_coff_unload(struct lkm_table *lkmtp, int cmd) int ibcs2_coff_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, ibcs2_coff_load, ibcs2_coff_unload, - lkm_nullcmd); + MOD_DISPATCH(ibcs2_coff, lkmtp, cmd, ver, + ibcs2_coff_load, ibcs2_coff_unload, lkm_nullcmd); } |