Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules/examples Align major numbers in example modules ...



details:   https://anonhg.NetBSD.org/src/rev/c0efe17ee1fe
branches:  trunk
changeset: 744349:c0efe17ee1fe
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Jan 30 07:58:33 2020 +0000

description:
Align major numbers in example modules with sys/conf/majors

Patch submitted by: Aditya Vardhan Padala (silv3r)

diffstat:

 sys/modules/examples/luareadhappy/luareadhappy.c         |  8 ++++----
 sys/modules/examples/mapper/mapper.c                     |  8 ++++----
 sys/modules/examples/panic_string/panic_string.c         |  8 ++++----
 sys/modules/examples/ping/ping.c                         |  8 ++++----
 sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c |  8 ++++----
 5 files changed, 20 insertions(+), 20 deletions(-)

diffs (180 lines):

diff -r 66f7999e680b -r c0efe17ee1fe sys/modules/examples/luareadhappy/luareadhappy.c
--- a/sys/modules/examples/luareadhappy/luareadhappy.c  Thu Jan 30 06:30:52 2020 +0000
+++ b/sys/modules/examples/luareadhappy/luareadhappy.c  Thu Jan 30 07:58:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: luareadhappy.c,v 1.1 2017/04/15 04:27:30 kamil Exp $   */
+/*     $NetBSD: luareadhappy.c,v 1.2 2020/01/30 07:58:33 kamil Exp $   */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: luareadhappy.c,v 1.1 2017/04/15 04:27:30 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: luareadhappy.c,v 1.2 2020/01/30 07:58:33 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -42,7 +42,7 @@
  * happy numbers.
  *
  * To use this device you need to do:
- *     mknod /dev/happy c 210 0
+ *     mknod /dev/happy c 351 0
  *
  * Commentary:
  * A happy number is a number defined by the following process: Starting with
@@ -189,7 +189,7 @@
 {
        /* The major should be verified and changed if needed to avoid
         * conflicts with other devices. */
-       int cmajor = 210, bmajor = -1;
+       int cmajor = 351, bmajor = -1;
 
        switch (cmd) {
        case MODULE_CMD_INIT:
diff -r 66f7999e680b -r c0efe17ee1fe sys/modules/examples/mapper/mapper.c
--- a/sys/modules/examples/mapper/mapper.c      Thu Jan 30 06:30:52 2020 +0000
+++ b/sys/modules/examples/mapper/mapper.c      Thu Jan 30 07:58:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mapper.c,v 1.1 2019/01/17 20:47:42 kamil Exp $ */
+/*     $NetBSD: mapper.c,v 1.2 2020/01/30 07:58:33 kamil Exp $ */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mapper.c,v 1.1 2019/01/17 20:47:42 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mapper.c,v 1.2 2020/01/30 07:58:33 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -42,7 +42,7 @@
 /*
  * Creating a device /dev/mapper for demonstration.
  * To use this device you need to do:
- *     mknod /dev/mapper c 210 0
+ *     mknod /dev/mapper c 351 0
  *
  */
 
@@ -121,7 +121,7 @@
 {
        /* The major should be verified and changed if needed to avoid
         * conflicts with other devices. */
-       int cmajor = 210, bmajor = -1;
+       int cmajor = 351, bmajor = -1;
 
        switch (cmd) {
        case MODULE_CMD_INIT:
diff -r 66f7999e680b -r c0efe17ee1fe sys/modules/examples/panic_string/panic_string.c
--- a/sys/modules/examples/panic_string/panic_string.c  Thu Jan 30 06:30:52 2020 +0000
+++ b/sys/modules/examples/panic_string/panic_string.c  Thu Jan 30 07:58:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: panic_string.c,v 1.1 2018/05/29 16:53:56 kamil Exp $   */
+/*     $NetBSD: panic_string.c,v 1.2 2020/01/30 07:58:33 kamil Exp $   */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: panic_string.c,v 1.1 2018/05/29 16:53:56 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: panic_string.c,v 1.2 2020/01/30 07:58:33 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -46,7 +46,7 @@
  * user input.
  *
  * To use this device you need to do:
- *      mknod /dev/panic c 210 0
+ *      mknod /dev/panic c 351 0
  *
  * To write to the device you might need:
  *      chmod 666 /dev/panic
@@ -173,7 +173,7 @@
 {
        /* The major should be verified and changed if needed to avoid
         * conflicts with other devices. */
-       int cmajor = 210, bmajor = -1;
+       int cmajor = 351, bmajor = -1;
 
        switch (cmd) {
        case MODULE_CMD_INIT:
diff -r 66f7999e680b -r c0efe17ee1fe sys/modules/examples/ping/ping.c
--- a/sys/modules/examples/ping/ping.c  Thu Jan 30 06:30:52 2020 +0000
+++ b/sys/modules/examples/ping/ping.c  Thu Jan 30 07:58:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ping.c,v 1.1 2015/05/13 07:07:36 pgoyette Exp $        */
+/*     $NetBSD: ping.c,v 1.2 2020/01/30 07:58:33 kamil Exp $   */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ping.c,v 1.1 2015/05/13 07:07:36 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ping.c,v 1.2 2020/01/30 07:58:33 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -41,7 +41,7 @@
  * Create a device /dev/ping in order to test this module.
  *
  * To use this device you need to do:
- *     mknod /dev/ping c 210 0
+ *     mknod /dev/ping c 351 0
  *
  */
 
@@ -112,7 +112,7 @@
 {
        /* The major should be verified and changed if needed to avoid
         * conflicts with other devices. */
-       int cmajor = 210, bmajor = -1;
+       int cmajor = 351, bmajor = -1;
 
        switch (cmd) {
        case MODULE_CMD_INIT:
diff -r 66f7999e680b -r c0efe17ee1fe sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c
--- a/sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c  Thu Jan 30 06:30:52 2020 +0000
+++ b/sys/modules/examples/readhappy_mpsafe/readhappy_mpsafe.c  Thu Jan 30 07:58:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readhappy_mpsafe.c,v 1.1 2018/04/20 00:06:45 kamil Exp $    */
+/*     $NetBSD: readhappy_mpsafe.c,v 1.2 2020/01/30 07:58:34 kamil Exp $    */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: readhappy_mpsafe.c,v 1.1 2018/04/20 00:06:45 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: readhappy_mpsafe.c,v 1.2 2020/01/30 07:58:34 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/module.h>
@@ -48,7 +48,7 @@
  * Create a device /dev/happy_mpsafe from which you can read sequential happy numbers.
  *
  * To use this device you need to do:
- *     mknod /dev/happy_mpsafe c 210 0
+ *     mknod /dev/happy_mpsafe c 351 0
  *
  * To test whether the device is MPSAFE. Compile and run the test_readhappy file
  * provided.
@@ -219,7 +219,7 @@
 static int
 happy_mpsafe_modcmd(modcmd_t cmd, void *arg __unused)
 {
-       int cmajor = 210, bmajor = -1;
+       int cmajor = 351, bmajor = -1;
 
        switch (cmd) {
        case MODULE_CMD_INIT:



Home | Main Index | Thread Index | Old Index