diff options
author | dufault <dufault@FreeBSD.org> | 1997-04-06 11:14:13 +0000 |
---|---|---|
committer | dufault <dufault@FreeBSD.org> | 1997-04-06 11:14:13 +0000 |
commit | e62e4c624ae75b13f1812862aa5ffc194f1921a4 (patch) | |
tree | 42f3ce7dddb1f896f895a6fd33ad3a2b58ecf4b1 /lkm | |
parent | 7485dac765253c701a97a0ecb94fefd223c9ea62 (diff) | |
download | FreeBSD-src-e62e4c624ae75b13f1812862aa5ffc194f1921a4.zip FreeBSD-src-e62e4c624ae75b13f1812862aa5ffc194f1921a4.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 'lkm')
-rw-r--r-- | lkm/syscons/star/star_saver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lkm/syscons/star/star_saver.c b/lkm/syscons/star/star_saver.c index 0ff3117..465c493 100644 --- a/lkm/syscons/star/star_saver.c +++ b/lkm/syscons/star/star_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: star_saver.c,v 1.10 1997/02/22 12:49:22 peter Exp $ */ #include <sys/param.h> @@ -112,6 +112,6 @@ star_saver_unload(struct lkm_table *lkmtp, int cmd) int star_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, star_saver_load, star_saver_unload, - lkm_nullcmd); + MOD_DISPATCH(star_saver, lkmtp, cmd, ver, + star_saver_load, star_saver_unload, lkm_nullcmd); } |