summaryrefslogtreecommitdiffstats
path: root/lkm
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-13 07:19:10 +0000
committerbde <bde@FreeBSD.org>1995-11-13 07:19:10 +0000
commit4d0291b75bede5c6394b403a5dd945d6015f96d0 (patch)
tree90197e807044255de692b99145a90cfe3f817479 /lkm
parent746199ef2edbca4d52a5733af2cbabeba8e6d027 (diff)
downloadFreeBSD-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 'lkm')
-rw-r--r--lkm/coff/coff.c5
-rw-r--r--lkm/ibcs2/ibcs2.c4
-rw-r--r--lkm/ipfw/ipfw_lkm.c3
-rw-r--r--lkm/linux/linux.c4
-rw-r--r--lkm/syscons/blank/blank_saver.c5
-rw-r--r--lkm/syscons/fade/fade_saver.c5
-rw-r--r--lkm/syscons/green/green_saver.c5
-rw-r--r--lkm/syscons/snake/snake_saver.c5
-rw-r--r--lkm/syscons/star/star_saver.c5
9 files changed, 23 insertions, 18 deletions
diff --git a/lkm/coff/coff.c b/lkm/coff/coff.c
index 9dd7117..67a4480 100644
--- a/lkm/coff/coff.c
+++ b/lkm/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/lkm/ibcs2/ibcs2.c b/lkm/ibcs2/ibcs2.c
index b39f390..4db2adf 100644
--- a/lkm/ibcs2/ibcs2.c
+++ b/lkm/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/lkm/ipfw/ipfw_lkm.c b/lkm/ipfw/ipfw_lkm.c
index a197766..6bf6fab 100644
--- a/lkm/ipfw/ipfw_lkm.c
+++ b/lkm/ipfw/ipfw_lkm.c
@@ -86,6 +86,5 @@ int s=splnet();
ipfw_mod(struct lkm_table *lkmtp, int cmd, int ver)
{
- DISPATCH(lkmtp, cmd, ver, ipfw_load, ipfw_unload, nosys);
+ DISPATCH(lkmtp, cmd, ver, ipfw_load, ipfw_unload, lkm_nullcmd);
}
-
diff --git a/lkm/linux/linux.c b/lkm/linux/linux.c
index 7d58664..852251a 100644
--- a/lkm/linux/linux.c
+++ b/lkm/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/lkm/syscons/blank/blank_saver.c b/lkm/syscons/blank/blank_saver.c
index 439adc8..226d7d3 100644
--- a/lkm/syscons/blank/blank_saver.c
+++ b/lkm/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/lkm/syscons/fade/fade_saver.c b/lkm/syscons/fade/fade_saver.c
index b3dadaf..9dc5225 100644
--- a/lkm/syscons/fade/fade_saver.c
+++ b/lkm/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/lkm/syscons/green/green_saver.c b/lkm/syscons/green/green_saver.c
index 24b2a58..b52e8ad 100644
--- a/lkm/syscons/green/green_saver.c
+++ b/lkm/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/lkm/syscons/snake/snake_saver.c b/lkm/syscons/snake/snake_saver.c
index 7a44bcd..d8ae95a 100644
--- a/lkm/syscons/snake/snake_saver.c
+++ b/lkm/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/lkm/syscons/star/star_saver.c b/lkm/syscons/star/star_saver.c
index f78996b..6090f3e 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: 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);
}
OpenPOWER on IntegriCloud