diff options
author | bde <bde@FreeBSD.org> | 1995-11-13 07:19:10 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-13 07:19:10 +0000 |
commit | 4d0291b75bede5c6394b403a5dd945d6015f96d0 (patch) | |
tree | 90197e807044255de692b99145a90cfe3f817479 /sys/modules | |
parent | 746199ef2edbca4d52a5733af2cbabeba8e6d027 (diff) | |
download | FreeBSD-src-4d0291b75bede5c6394b403a5dd945d6015f96d0.zip FreeBSD-src-4d0291b75bede5c6394b403a5dd945d6015f96d0.tar.gz |
Replaced nosys() by lkm_nullcmd(). Always call lkm load/unload/stat
functions instead of skipping the call if the function is nosys().
nosys() returned the wrong value as well as having the wrong type.
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/coff/coff.c | 5 | ||||
-rw-r--r-- | sys/modules/ibcs2/ibcs2.c | 4 | ||||
-rw-r--r-- | sys/modules/linux/linux.c | 4 | ||||
-rw-r--r-- | sys/modules/syscons/blank/blank_saver.c | 5 | ||||
-rw-r--r-- | sys/modules/syscons/fade/fade_saver.c | 5 | ||||
-rw-r--r-- | sys/modules/syscons/green/green_saver.c | 5 | ||||
-rw-r--r-- | sys/modules/syscons/snake/snake_saver.c | 5 | ||||
-rw-r--r-- | sys/modules/syscons/star/star_saver.c | 5 |
8 files changed, 22 insertions, 16 deletions
diff --git a/sys/modules/coff/coff.c b/sys/modules/coff/coff.c index 9dd7117..67a4480 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: coff.c,v 1.2 1995/05/30 06:06:00 rgrimes Exp $ + * $Id: coff.c,v 1.3 1995/10/28 12:34:58 peter Exp $ */ #include <sys/param.h> @@ -54,5 +54,6 @@ ibcs2_coff_unload(struct lkm_table *lkmtp, int cmd) ibcs2_coff_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, ibcs2_coff_load, ibcs2_coff_unload, nosys); + DISPATCH(lkmtp, cmd, ver, ibcs2_coff_load, ibcs2_coff_unload, + lkm_nullcmd); } diff --git a/sys/modules/ibcs2/ibcs2.c b/sys/modules/ibcs2/ibcs2.c index b39f390..4db2adf 100644 --- a/sys/modules/ibcs2/ibcs2.c +++ b/sys/modules/ibcs2/ibcs2.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: ibcs2.c,v 1.4 1995/10/10 08:20:28 swallace Exp $ + * $Id: ibcs2.c,v 1.5 1995/10/28 12:35:03 peter Exp $ */ #include <sys/param.h> @@ -59,5 +59,5 @@ ibcs2_unload(struct lkm_table *lkmtp, int cmd) int ibcs2_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, ibcs2_load, ibcs2_unload, nosys); + DISPATCH(lkmtp, cmd, ver, ibcs2_load, ibcs2_unload, lkm_nullcmd); } diff --git a/sys/modules/linux/linux.c b/sys/modules/linux/linux.c index 7d58664..852251a 100644 --- a/sys/modules/linux/linux.c +++ b/sys/modules/linux/linux.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: linux.c,v 1.1 1995/06/25 17:29:48 sos Exp $ + * $Id: linux.c,v 1.2 1995/10/28 12:35:07 peter Exp $ */ #include <sys/param.h> @@ -54,5 +54,5 @@ linux_unload(struct lkm_table *lkmtp, int cmd) linux_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, linux_load, linux_unload, nosys); + DISPATCH(lkmtp, cmd, ver, linux_load, linux_unload, lkm_nullcmd); } diff --git a/sys/modules/syscons/blank/blank_saver.c b/sys/modules/syscons/blank/blank_saver.c index 439adc8..226d7d3 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: blank_saver.c,v 1.2 1995/05/30 06:06:13 rgrimes Exp $ + * $Id: blank_saver.c,v 1.3 1995/10/28 12:35:09 peter Exp $ */ #include <sys/param.h> @@ -77,5 +77,6 @@ blank_saver_unload(struct lkm_table *lkmtp, int cmd) blank_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, blank_saver_load, blank_saver_unload, nosys); + DISPATCH(lkmtp, cmd, ver, blank_saver_load, blank_saver_unload, + lkm_nullcmd); } diff --git a/sys/modules/syscons/fade/fade_saver.c b/sys/modules/syscons/fade/fade_saver.c index b3dadaf..9dc5225 100644 --- a/sys/modules/syscons/fade/fade_saver.c +++ b/sys/modules/syscons/fade/fade_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: fade_saver.c,v 1.2 1995/05/30 06:06:15 rgrimes Exp $ + * $Id: fade_saver.c,v 1.3 1995/10/28 12:35:10 peter Exp $ */ #include <sys/param.h> @@ -92,5 +92,6 @@ fade_saver_unload(struct lkm_table *lkmtp, int cmd) fade_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, fade_saver_load, fade_saver_unload, nosys); + DISPATCH(lkmtp, cmd, ver, fade_saver_load, fade_saver_unload, + lkm_nullcmd); } diff --git a/sys/modules/syscons/green/green_saver.c b/sys/modules/syscons/green/green_saver.c index 24b2a58..b52e8ad 100644 --- a/sys/modules/syscons/green/green_saver.c +++ b/sys/modules/syscons/green/green_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: green_saver.c,v 1.2 1995/05/30 06:06:17 rgrimes Exp $ + * $Id: green_saver.c,v 1.3 1995/10/28 12:35:11 peter Exp $ */ #include <sys/param.h> @@ -81,5 +81,6 @@ green_saver_unload(struct lkm_table *lkmtp, int cmd) green_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, green_saver_load, green_saver_unload, nosys); + DISPATCH(lkmtp, cmd, ver, green_saver_load, green_saver_unload, + lkm_nullcmd); } diff --git a/sys/modules/syscons/snake/snake_saver.c b/sys/modules/syscons/snake/snake_saver.c index 7a44bcd..d8ae95a 100644 --- a/sys/modules/syscons/snake/snake_saver.c +++ b/sys/modules/syscons/snake/snake_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: snake_saver.c,v 1.5 1995/09/04 03:02:08 peter Exp $ + * $Id: snake_saver.c,v 1.6 1995/10/28 12:35:12 peter Exp $ */ #include <sys/param.h> @@ -118,5 +118,6 @@ snake_saver_unload(struct lkm_table *lkmtp, int cmd) snake_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, snake_saver_load, snake_saver_unload, nosys); + DISPATCH(lkmtp, cmd, ver, snake_saver_load, snake_saver_unload, + lkm_nullcmd); } diff --git a/sys/modules/syscons/star/star_saver.c b/sys/modules/syscons/star/star_saver.c index f78996b..6090f3e 100644 --- a/sys/modules/syscons/star/star_saver.c +++ b/sys/modules/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: star_saver.c,v 1.3 1995/05/30 06:06:20 rgrimes Exp $ + * $Id: star_saver.c,v 1.4 1995/10/28 12:35:14 peter Exp $ */ #include <sys/param.h> @@ -108,5 +108,6 @@ star_saver_unload(struct lkm_table *lkmtp, int cmd) star_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) { - DISPATCH(lkmtp, cmd, ver, star_saver_load, star_saver_unload, nosys); + DISPATCH(lkmtp, cmd, ver, star_saver_load, star_saver_unload, + lkm_nullcmd); } |