]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make MOD_* macros almost consistent:
authordufault <dufault@FreeBSD.org>
Sun, 6 Apr 1997 10:49:22 +0000 (10:49 +0000)
committerdufault <dufault@FreeBSD.org>
Sun, 6 Apr 1997 10:49:22 +0000 (10:49 +0000)
commit7485dac765253c701a97a0ecb94fefd223c9ea62
treeb8a7e1922ebbca9e8fdbecaa9feaa545cbb0db0d
parent6b27cec2a9f16e020db3f190354d5b1aa1f391fc
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
18 files changed:
lkm/coff/coff.c
lkm/ibcs2/ibcs2.c
lkm/linux/linux.c
lkm/syscons/blank/blank_saver.c
lkm/syscons/fade/fade_saver.c
lkm/syscons/green/green_saver.c
lkm/syscons/snake/snake_saver.c
sys/dev/syscons/blank/blank_saver.c
sys/dev/syscons/fade/fade_saver.c
sys/dev/syscons/green/green_saver.c
sys/dev/syscons/snake/snake_saver.c
sys/modules/coff/coff.c
sys/modules/ibcs2/ibcs2.c
sys/modules/linux/linux.c
sys/modules/syscons/blank/blank_saver.c
sys/modules/syscons/fade/fade_saver.c
sys/modules/syscons/green/green_saver.c
sys/modules/syscons/snake/snake_saver.c