]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make MOD_* macros almost consistent:
authorPeter Dufault <dufault@FreeBSD.org>
Sun, 6 Apr 1997 11:14:13 +0000 (11:14 +0000)
committerPeter Dufault <dufault@FreeBSD.org>
Sun, 6 Apr 1997 11:14:13 +0000 (11:14 +0000)
commit0ddf9be1f0723916ebd4feb7313d64dffab0c2bb
treebb684ae0dbb1f70d89660314962f2e6de0c74843
parent952d112864d8008aa87278a30a539d888a8493cd
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
16 files changed:
lkm/syscons/star/star_saver.c
share/examples/lkm/misc/module/miscmod.c
sys/dev/joy/joy.c
sys/dev/syscons/star/star_saver.c
sys/i386/isa/atapi.c
sys/i386/isa/joy.c
sys/i386/isa/qcam.c
sys/i386/isa/wcd.c
sys/isa/joy.c
sys/kern/kern_lkm.c
sys/modules/syscons/star/star_saver.c
sys/netinet/ip_fw.c
sys/pccard/pcic.c
sys/sys/kernel.h
sys/sys/lkm.h
sys/sys/mount.h