Source-Changes-HG archive

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

[src/trunk]: src Create an "options MODULAR_DEFAULT_AUTOLOAD" config option a...



details:   https://anonhg.NetBSD.org/src/rev/c5715ac8a574
branches:  trunk
changeset: 331777:c5715ac8a574
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Sun Aug 24 07:59:22 2014 +0000

description:
Create an "options MODULAR_DEFAULT_AUTOLOAD" config option and add
it to all kernel configs that contain "options MODULAR".  This
option turns on module autoloading by default (which is the current
default).  This allows people who don't want module autoloading on
by default to disable it by simply removing/commentting this line.

diffstat:

 share/man/man4/options.4             |  10 ++++++++--
 sys/arch/amd64/conf/ALL              |   5 +++--
 sys/arch/amd64/conf/GENERIC          |   5 +++--
 sys/arch/dreamcast/conf/GENERIC      |   3 ++-
 sys/arch/epoc32/conf/GENERIC         |   5 +++--
 sys/arch/evbarm/conf/BCM5301X        |   3 ++-
 sys/arch/evbarm/conf/BCM56340        |   3 ++-
 sys/arch/evbarm/conf/IMX23_OLINUXINO |   3 ++-
 sys/arch/evbarm/conf/std.beagle      |   3 ++-
 sys/arch/evbarm/conf/std.cubie       |   3 ++-
 sys/arch/evbarm/conf/std.kobo        |   3 ++-
 sys/arch/evbarm/conf/std.netwalker   |   3 ++-
 sys/arch/evbarm/conf/std.odroid      |   3 ++-
 sys/arch/evbarm/conf/std.rpi         |   3 ++-
 sys/arch/evbppc/conf/P2020DS         |   5 +++--
 sys/arch/evbppc/conf/RB800           |   5 +++--
 sys/arch/evbppc/conf/TWRP1025        |   5 +++--
 sys/arch/hp300/conf/GENERIC          |   5 +++--
 sys/arch/hpcsh/conf/GENERIC          |   3 ++-
 sys/arch/i386/conf/GENERIC           |   5 +++--
 sys/arch/i386/conf/MONOLITHIC        |   3 ++-
 sys/arch/landisk/conf/GENERIC        |   5 +++--
 sys/arch/luna68k/conf/GENERIC        |   5 +++--
 sys/arch/macppc/conf/GENERIC         |   5 +++--
 sys/arch/macppc/conf/GENERIC_601     |   5 +++--
 sys/arch/mmeye/conf/MMEYE_WLF        |   5 +++--
 sys/arch/news68k/conf/GENERIC        |   5 +++--
 sys/arch/sandpoint/conf/GENERIC      |   5 +++--
 sys/arch/shark/conf/GENERIC          |   5 +++--
 sys/arch/sparc/conf/GENERIC          |   5 +++--
 sys/arch/sparc64/conf/GENERIC        |   5 +++--
 sys/arch/sun3/conf/GENERIC           |   5 +++--
 sys/arch/sun3/conf/GENERIC3X         |   5 +++--
 sys/arch/x68k/conf/GENERIC           |   5 +++--
 sys/arch/zaurus/conf/GENERIC         |   3 ++-
 sys/conf/files                       |   5 +++--
 sys/kern/kern_module.c               |   8 ++++++--
 37 files changed, 106 insertions(+), 61 deletions(-)

diffs (truncated from 845 to 300 lines):

diff -r 5497f79e4f30 -r c5715ac8a574 share/man/man4/options.4
--- a/share/man/man4/options.4  Sun Aug 24 06:13:36 2014 +0000
+++ b/share/man/man4/options.4  Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: options.4,v 1.441 2014/08/21 07:51:32 apb Exp $
+.\"    $NetBSD: options.4,v 1.442 2014/08/24 07:59:22 jnemeth Exp $
 .\"
 .\" Copyright (c) 1996
 .\"    Perry E. Metzger.  All rights reserved.
@@ -30,7 +30,7 @@
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\"
-.Dd August 16, 2014
+.Dd August 23, 2014
 .Dt OPTIONS 4
 .Os
 .Sh NAME
@@ -1231,6 +1231,12 @@
 .It Cd options MODULAR
 Enables the framework for kernel modules (see
 .Xr module 7 ) .
+.It Cd options MODULAR_DEFAULT_AUTOLOAD
+Enables the autoloading of kernel modules by default.
+This sets the default value of the
+.Em kern.module.autoload
+.Xr sysctl 3
+variable which may be changed at run time.
 .It Cd options VND_COMPRESSION
 Enables the
 .Xr vnd 4
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/amd64/conf/ALL
--- a/sys/arch/amd64/conf/ALL   Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/amd64/conf/ALL   Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.17 2014/08/23 21:05:39 dholland Exp $
+# $NetBSD: ALL,v 1.18 2014/08/24 07:59:22 jnemeth Exp $
 # From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
 #
 # ALL machine description file
@@ -17,7 +17,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "ALL-$Revision: 1.17 $"
+#ident                 "ALL-$Revision: 1.18 $"
 
 maxusers       64              # estimated number of users
 
@@ -90,6 +90,7 @@
 options        SYSVSHM         # System V-like memory sharing
 
 options        MODULAR         # new style module(7) framework
+options        MODULAR_DEFAULT_AUTOLOAD
 
 options        USERCONF        # userconf(4) support
 options        PIPE_SOCKETPAIR # smaller, but slower pipe(2)
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/amd64/conf/GENERIC
--- a/sys/arch/amd64/conf/GENERIC       Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/amd64/conf/GENERIC       Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.395 2014/08/23 20:26:56 dholland Exp $
+# $NetBSD: GENERIC,v 1.396 2014/08/24 07:59:22 jnemeth Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "GENERIC-$Revision: 1.395 $"
+#ident                 "GENERIC-$Revision: 1.396 $"
 
 maxusers       64              # estimated number of users
 
@@ -68,6 +68,7 @@
 options        SYSVSHM         # System V-like memory sharing
 
 options        MODULAR         # new style module(7) framework
+options        MODULAR_DEFAULT_AUTOLOAD
 options        USERCONF        # userconf(4) support
 #options       PIPE_SOCKETPAIR # smaller, but slower pipe(2)
 options        SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/dreamcast/conf/GENERIC
--- a/sys/arch/dreamcast/conf/GENERIC   Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/dreamcast/conf/GENERIC   Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.118 2014/08/23 20:26:57 dholland Exp $
+# $NetBSD: GENERIC,v 1.119 2014/08/24 07:59:22 jnemeth Exp $
 #
 # GENERIC machine description file
 # 
@@ -42,6 +42,7 @@
 options        SYSVSHM         # System V-like memory sharing
 
 #options       MODULAR         # new style module(7) framework
+#options       MODULAR_DEFAULT_AUTOLOAD
 
 # Diagnostic/debugging support options
 #options       DIAGNOSTIC      # cheap kernel consistency checks
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/epoc32/conf/GENERIC
--- a/sys/arch/epoc32/conf/GENERIC      Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/epoc32/conf/GENERIC      Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: GENERIC,v 1.5 2014/08/23 20:26:57 dholland Exp $
+#      $NetBSD: GENERIC,v 1.6 2014/08/24 07:59:22 jnemeth Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@
 
 #options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "GENERIC-$Revision: 1.5 $"
+#ident                 "GENERIC-$Revision: 1.6 $"
 
 maxusers       32                      # estimated number of users
 
@@ -91,6 +91,7 @@
 
 # Loadable kernel module support
 #options       MODULAR         # new style module(7) framework
+#options       MODULAR_DEFAULT_AUTOLOAD
 
 #
 # wscons options
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/BCM5301X
--- a/sys/arch/evbarm/conf/BCM5301X     Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/BCM5301X     Sun Aug 24 07:59:22 2014 +0000
@@ -1,5 +1,5 @@
 #
-#      $NetBSD: BCM5301X,v 1.23 2014/08/23 20:26:57 dholland Exp $
+#      $NetBSD: BCM5301X,v 1.24 2014/08/24 07:59:22 jnemeth Exp $
 #
 #      BCM5301X -- Broadcom BCM5301X Eval Board Kernel
 #
@@ -127,6 +127,7 @@
 
 # Miscellaneous kernel options
 options        MODULAR         # support dynamically loaded kernel modules
+options        MODULAR_DEFAULT_AUTOLOAD
 options        KTRACE          # system call tracing, a la ktrace(1)
 #options       KMEMSTATS       # kernel memory statistics
 options        PCIVERBOSE      # Verbose PCI autoconfiguration messages
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/BCM56340
--- a/sys/arch/evbarm/conf/BCM56340     Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/BCM56340     Sun Aug 24 07:59:22 2014 +0000
@@ -1,5 +1,5 @@
 #
-#      $NetBSD: BCM56340,v 1.8 2014/08/23 20:26:57 dholland Exp $
+#      $NetBSD: BCM56340,v 1.9 2014/08/24 07:59:22 jnemeth Exp $
 #
 #      BCM5301X -- Broadcom BCM5301X Eval Board Kernel
 #
@@ -127,6 +127,7 @@
 
 # Miscellaneous kernel options
 options        MODULAR         # support dynamically loaded kernel modules
+options        MODULAR_DEFAULT_AUTOLOAD
 options        KTRACE          # system call tracing, a la ktrace(1)
 #options       KMEMSTATS       # kernel memory statistics
 options        PCIVERBOSE      # Verbose PCI autoconfiguration messages
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/IMX23_OLINUXINO
--- a/sys/arch/evbarm/conf/IMX23_OLINUXINO      Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/IMX23_OLINUXINO      Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-# $Id: IMX23_OLINUXINO,v 1.8 2014/08/23 20:26:57 dholland Exp $
+# $Id: IMX23_OLINUXINO,v 1.9 2014/08/24 07:59:22 jnemeth Exp $
 #
 # IMX23_OLINUXINO -- Olimex i.MX23 OLinuXino kernel configuration file.
 #
@@ -97,6 +97,7 @@
 options                SYSVSHM         # System V-like memory sharing
 
 #options               MODULAR
+#options               MODULAR_DEFAULT_AUTOLOAD
 options                KTRACE
 #options               DEBUG
 #options               DIAGNOSTIC
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/std.beagle
--- a/sys/arch/evbarm/conf/std.beagle   Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/std.beagle   Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: std.beagle,v 1.12 2013/11/01 18:41:06 skrll Exp $
+#      $NetBSD: std.beagle,v 1.13 2014/08/24 07:59:22 jnemeth Exp $
 #
 # standard NetBSD/evbarm for BEAGLEBOARD options
 
@@ -10,6 +10,7 @@
 
 # To support easy transit to ../arch/arm/arm32
 options        MODULAR
+options        MODULAR_DEFAULT_AUTOLOAD
 options        __HAVE_CPU_COUNTER
 options        CORTEX_PMC
 options        __HAVE_FAST_SOFTINTS            # should be in types.h
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/std.cubie
--- a/sys/arch/evbarm/conf/std.cubie    Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/std.cubie    Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: std.cubie,v 1.3 2014/02/27 16:00:32 reinoud Exp $
+#      $NetBSD: std.cubie,v 1.4 2014/08/24 07:59:22 jnemeth Exp $
 #
 # standard NetBSD/evbarm for CUBIEBOARD options
 
@@ -10,6 +10,7 @@
 
 # To support easy transit to ../arch/arm/arm32
 options        MODULAR
+options        MODULAR_DEFAULT_AUTOLOAD
 options        __HAVE_CPU_COUNTER
 options        CORTEX_PMC
 options        __HAVE_FAST_SOFTINTS            # should be in types.h
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/std.kobo
--- a/sys/arch/evbarm/conf/std.kobo     Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/std.kobo     Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: std.kobo,v 1.1 2014/07/25 11:22:50 hkenken Exp $
+#      $NetBSD: std.kobo,v 1.2 2014/08/24 07:59:22 jnemeth Exp $
 #
 # standard NetBSD/evbarm options for Kobo
 
@@ -9,6 +9,7 @@
 include                "arch/evbarm/conf/files.kobo"
 
 options        MODULAR
+options        MODULAR_DEFAULT_AUTOLOAD
 options        __HAVE_FAST_SOFTINTS            # should be in types.h
 options        __HAVE_CPU_COUNTER
 options         __HAVE_MM_MD_DIRECT_MAPPED_PHYS
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/std.netwalker
--- a/sys/arch/evbarm/conf/std.netwalker        Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/std.netwalker        Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: std.netwalker,v 1.9 2014/04/09 04:00:50 hkenken Exp $
+#      $NetBSD: std.netwalker,v 1.10 2014/08/24 07:59:22 jnemeth Exp $
 #
 # standard NetBSD/evbarm options for Sharp NetWalker
 
@@ -9,6 +9,7 @@
 include                "arch/evbarm/conf/files.netwalker"
 
 options        MODULAR
+options        MODULAR_DEFAULT_AUTOLOAD
 options        __HAVE_FAST_SOFTINTS            # should be in types.h
 options        __HAVE_CPU_COUNTER
 options         __HAVE_MM_MD_DIRECT_MAPPED_PHYS
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/std.odroid
--- a/sys/arch/evbarm/conf/std.odroid   Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/std.odroid   Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: std.odroid,v 1.3 2014/08/14 12:48:52 reinoud Exp $
+#      $NetBSD: std.odroid,v 1.4 2014/08/24 07:59:22 jnemeth Exp $
 #
 # standard NetBSD/evbarm for ODROID options
 
@@ -12,6 +12,7 @@
 
 # To support easy transit to ../arch/arm/arm32
 options        MODULAR
+options        MODULAR_DEFAULT_AUTOLOAD
 options        ARM_HAS_VBAR
 options        CORTEX_PMC
 options        __HAVE_CPU_COUNTER
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbarm/conf/std.rpi
--- a/sys/arch/evbarm/conf/std.rpi      Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbarm/conf/std.rpi      Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: std.rpi,v 1.14 2014/04/06 12:43:18 skrll Exp $
+#      $NetBSD: std.rpi,v 1.15 2014/08/24 07:59:22 jnemeth Exp $
 #
 # standard NetBSD/evbarm for Raspberry Pi options
 
@@ -9,6 +9,7 @@
 include                "arch/evbarm/conf/files.rpi"
 
 options        MODULAR
+options        MODULAR_DEFAULT_AUTOLOAD
 options        ARM11_COMPAT_MMU
 options        __HAVE_CPU_COUNTER
 options        __HAVE_FAST_SOFTINTS            # should be in types.h
diff -r 5497f79e4f30 -r c5715ac8a574 sys/arch/evbppc/conf/P2020DS
--- a/sys/arch/evbppc/conf/P2020DS      Sun Aug 24 06:13:36 2014 +0000
+++ b/sys/arch/evbppc/conf/P2020DS      Sun Aug 24 07:59:22 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: P2020DS,v 1.24 2014/08/23 20:26:57 dholland Exp $
+#      $NetBSD: P2020DS,v 1.25 2014/08/24 07:59:22 jnemeth Exp $
 #
 #      P2020DS -- everything that's currently supported
 #
@@ -8,7 +8,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-ident          "P2020DS-$Revision: 1.24 $"
+ident          "P2020DS-$Revision: 1.25 $"
 
 maxusers       32
 
@@ -30,6 +30,7 @@



Home | Main Index | Thread Index | Old Index