diff options
author | Peter Dufault <dufault@FreeBSD.org> | 1997-04-06 10:49:22 +0000 |
---|---|---|
committer | Peter Dufault <dufault@FreeBSD.org> | 1997-04-06 10:49:22 +0000 |
commit | 952d112864d8008aa87278a30a539d888a8493cd (patch) | |
tree | 486b500e22e0c8262c8c1ea9a1d05e2ec692fcab /sys/modules/syscons/blank/blank_saver.c | |
parent | c9e191b82a0c9d371c12cc46108a38bcd47fa288 (diff) | |
download | src-952d112864d8008aa87278a30a539d888a8493cd.tar.gz src-952d112864d8008aa87278a30a539d888a8493cd.zip |
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
Notes
Notes:
svn path=/head/; revision=24673
Diffstat (limited to 'sys/modules/syscons/blank/blank_saver.c')
-rw-r--r-- | sys/modules/syscons/blank/blank_saver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/modules/syscons/blank/blank_saver.c b/sys/modules/syscons/blank/blank_saver.c index 46553d3f2270..d0194283b7e3 100644 --- a/sys/modules/syscons/blank/blank_saver.c +++ b/sys/modules/syscons/blank/blank_saver.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: blank_saver.c,v 1.8 1997/02/22 12:49:06 peter Exp $ */ #include <sys/param.h> @@ -78,6 +78,6 @@ blank_saver_unload(struct lkm_table *lkmtp, int cmd) int blank_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, blank_saver_load, blank_saver_unload, - lkm_nullcmd); + MOD_DISPATCH(blank_saver, lkmtp, cmd, ver, + blank_saver_load, blank_saver_unload, lkm_nullcmd); } |