Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

um: clean Kconfig up a bit

* kill duplicates with drivers/char/Kconfig
* take watchdog one into drivers/watchdog/Kconfig
* take mmapper to arch/um/Kconfig.um
* rename Kconfig.char menu to "UML Character Devices"

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>

authored by

Al Viro and committed by
Richard Weinberger
d805a786 bad3118f

+26 -113
+1 -113
arch/um/Kconfig.char
··· 1 - 2 - menu "Character Devices" 1 + menu "UML Character Devices" 3 2 4 3 config STDERR_CONSOLE 5 4 bool "stderr console" ··· 104 105 this if you expect the UML that you build to be run in environments 105 106 which don't have a set of /dev/pty* devices. 106 107 107 - config UNIX98_PTYS 108 - bool "Unix98 PTY support" 109 - help 110 - A pseudo terminal (PTY) is a software device consisting of two 111 - halves: a master and a slave. The slave device behaves identical to 112 - a physical terminal; the master device is used by a process to 113 - read data from and write data to the slave, thereby emulating a 114 - terminal. Typical programs for the master side are telnet servers 115 - and xterms. 116 - 117 - Linux has traditionally used the BSD-like names /dev/ptyxx for 118 - masters and /dev/ttyxx for slaves of pseudo terminals. This scheme 119 - has a number of problems. The GNU C library glibc 2.1 and later, 120 - however, supports the Unix98 naming standard: in order to acquire a 121 - pseudo terminal, a process opens /dev/ptmx; the number of the pseudo 122 - terminal is then made available to the process and the pseudo 123 - terminal slave can be accessed as /dev/pts/<number>. What was 124 - traditionally /dev/ttyp2 will then be /dev/pts/2, for example. 125 - 126 - All modern Linux systems use the Unix98 ptys. Say Y unless 127 - you're on an embedded system and want to conserve memory. 128 - 129 - config LEGACY_PTYS 130 - bool "Legacy (BSD) PTY support" 131 - default y 132 - help 133 - A pseudo terminal (PTY) is a software device consisting of two 134 - halves: a master and a slave. The slave device behaves identical to 135 - a physical terminal; the master device is used by a process to 136 - read data from and write data to the slave, thereby emulating a 137 - terminal. Typical programs for the master side are telnet servers 138 - and xterms. 139 - 140 - Linux has traditionally used the BSD-like names /dev/ptyxx 141 - for masters and /dev/ttyxx for slaves of pseudo 142 - terminals. This scheme has a number of problems, including 143 - security. This option enables these legacy devices; on most 144 - systems, it is safe to say N. 145 - 146 - config RAW_DRIVER 147 - tristate "RAW driver (/dev/raw/rawN)" 148 - depends on BLOCK 149 - help 150 - The raw driver permits block devices to be bound to /dev/raw/rawN. 151 - Once bound, I/O against /dev/raw/rawN uses efficient zero-copy I/O. 152 - See the raw(8) manpage for more details. 153 - 154 - Applications should preferably open the device (eg /dev/hda1) 155 - with the O_DIRECT flag. 156 - 157 - config MAX_RAW_DEVS 158 - int "Maximum number of RAW devices to support (1-8192)" 159 - depends on RAW_DRIVER 160 - default "256" 161 - help 162 - The maximum number of RAW devices that are supported. 163 - Default is 256. Increase this number in case you need lots of 164 - raw devices. 165 - 166 - config LEGACY_PTY_COUNT 167 - int "Maximum number of legacy PTY in use" 168 - depends on LEGACY_PTYS 169 - default "256" 170 - help 171 - The maximum number of legacy PTYs that can be used at any one time. 172 - The default is 256, and should be more than enough. Embedded 173 - systems may want to reduce this to save memory. 174 - 175 - When not in use, each legacy PTY occupies 12 bytes on 32-bit 176 - architectures and 24 bytes on 64-bit architectures. 177 - 178 - config WATCHDOG 179 - bool "Watchdog Timer Support" 180 - 181 - config WATCHDOG_NOWAYOUT 182 - bool "Disable watchdog shutdown on close" 183 - depends on WATCHDOG 184 - 185 - config SOFT_WATCHDOG 186 - tristate "Software Watchdog" 187 - depends on WATCHDOG 188 - 189 - config UML_WATCHDOG 190 - tristate "UML watchdog" 191 - depends on WATCHDOG 192 - 193 108 config UML_SOUND 194 109 tristate "Sound support" 195 110 help ··· 123 210 config HOSTAUDIO 124 211 tristate 125 212 default UML_SOUND 126 - 127 - #It is selected elsewhere, so kconfig would warn without this. 128 - config HW_RANDOM 129 - tristate 130 - default n 131 - 132 - config UML_RANDOM 133 - tristate "Hardware random number generator" 134 - help 135 - This option enables UML's "hardware" random number generator. It 136 - attaches itself to the host's /dev/random, supplying as much entropy 137 - as the host has, rather than the small amount the UML gets from its 138 - own drivers. It registers itself as a standard hardware random number 139 - generator, major 10, minor 183, and the canonical device name is 140 - /dev/hwrng. 141 - The way to make use of this is to install the rng-tools package 142 - (check your distro, or download from 143 - http://sourceforge.net/projects/gkernel/). rngd periodically reads 144 - /dev/hwrng and injects the entropy into /dev/random. 145 - 146 - config MMAPPER 147 - tristate "iomem emulation driver" 148 - help 149 - This driver allows a host file to be used as emulated IO memory inside 150 - UML. 151 213 152 214 endmenu
+6
arch/um/Kconfig.um
··· 148 148 be 1 << order pages. The default is OK unless you're running Valgrind 149 149 on UML, in which case, set this to 3. 150 150 151 + config MMAPPER 152 + tristate "iomem emulation driver" 153 + help 154 + This driver allows a host file to be used as emulated IO memory inside 155 + UML. 156 + 151 157 config NO_DMA 152 158 def_bool y
+15
drivers/char/hw_random/Kconfig
··· 222 222 module will be called ppc4xx-rng. 223 223 224 224 If unsure, say N. 225 + 226 + config UML_RANDOM 227 + depends on UML 228 + tristate "Hardware random number generator" 229 + help 230 + This option enables UML's "hardware" random number generator. It 231 + attaches itself to the host's /dev/random, supplying as much entropy 232 + as the host has, rather than the small amount the UML gets from its 233 + own drivers. It registers itself as a standard hardware random number 234 + generator, major 10, minor 183, and the canonical device name is 235 + /dev/hwrng. 236 + The way to make use of this is to install the rng-tools package 237 + (check your distro, or download from 238 + http://sourceforge.net/projects/gkernel/). rngd periodically reads 239 + /dev/hwrng and injects the entropy into /dev/random.
+4
drivers/watchdog/Kconfig
··· 1174 1174 by Xen 4.0 and newer. The watchdog timeout period is normally one 1175 1175 minute but can be changed with a boot-time parameter. 1176 1176 1177 + config UML_WATCHDOG 1178 + tristate "UML watchdog" 1179 + depends on UML 1180 + 1177 1181 # 1178 1182 # ISA-based Watchdog Cards 1179 1183 #