···314314 <emphasis>usbdevfs</emphasis> although it wasn't solving what315315 <emphasis>devfs</emphasis> was.316316 Every USB device will appear in usbfs, regardless of whether or317317- not it has a kernel driver; but only devices with kernel drivers318318- show up in devfs.317317+ not it has a kernel driver.319318 </para>320319321320 <sect1>
+1-6
Documentation/DocBook/writing_usb_driver.tmpl
···224224 Conversely, when the device is removed from the USB bus, the disconnect225225 function is called with the device pointer. The driver needs to clean any226226 private data that has been allocated at this time and to shut down any227227- pending urbs that are in the USB system. The driver also unregisters228228- itself from the devfs subsystem with the call:227227+ pending urbs that are in the USB system.229228 </para>230230- <programlisting>231231-/* remove our devfs node */232232-devfs_unregister(skel->devfs);233233- </programlisting>234229 <para>235230 Now that the device is plugged into the system and the driver is bound to236231 the device, any of the functions in the file_operations structure that
+2-2
Documentation/arm/SA1100/serial_UART
···2424> 7 = /dev/cusa2 Callout device for ttySA22525>26262727-If you're not using devfs, you must create those inodes in /dev2828-on the root filesystem used by your SA1100-based device:2727+You must create those inodes in /dev on the root filesystem used2828+by your SA1100-based device:29293030 mknod ttySA0 c 204 53131 mknod ttySA1 c 204 6
+2-68
Documentation/computone.txt
···199199Linux tty naming conventions: ttyF0 - ttyF255 for normal devices, and200200cuf0 - cuf255 for callout devices.201201202202-If you are using devfs, existing devices are automatically created within203203-the devfs name space. Normal devices will be tts/F0 - tts/F255 and callout204204-devices will be cua/F0 - cua/F255. With devfs installed, ip2mkdev will205205-create symbolic links in /dev from the old conventional names to the newer206206-devfs names as follows:207207-208208- /dev/ip2ipl[n] -> /dev/ip2/ipl[n] n = 0 - 3209209- /dev/ip2stat[n] -> /dev/ip2/stat[n] n = 0 - 3210210- /dev/ttyF[n] -> /dev/tts/F[n] n = 0 - 255211211- /dev/cuf[n] -> /dev/cua/F[n] n = 0 - 255212212-213213-Only devices for existing ports and boards will be created.214214-215215-IMPORTANT NOTE: The naming convention used for devfs by this driver216216-was changed from 1.2.12 to 1.2.13. The old naming convention was to217217-use ttf/%d for the tty device and cuf/%d for the cua device. That218218-has been changed to conform to an agreed-upon standard of placing219219-all the tty devices under tts. The device names are now tts/F%d for220220-the tty device and cua/F%d for the cua devices. If you were using221221-the older devfs names, you must update for the newer convention.222222-223223-You do not need to run ip2mkdev if you are using devfs and only want to224224-use the devfs native device names.225225-2262022272034. USING THE DRIVERS228204···232256use the ip2mkdev script, you must have procfs enabled and the proc file233257system mounted on /proc.234258235235-You do not need to run ip2mkdev if you are using devfs and only want to236236-use the devfs native device names.237259238238-239239-6. DEVFS240240-241241-DEVFS is the DEVice File System available as an add on package for the242242-2.2.x kernels and available as a configuration option in 2.3.46 and higher.243243-Devfs allows for the automatic creation and management of device names244244-under control of the device drivers themselves. The Devfs namespace is245245-hierarchical and reduces the clutter present in the normal flat /dev246246-namespace. Devfs names and conventional device names may be intermixed.247247-A userspace daemon, devfsd, exists to allow for automatic creation and248248-management of symbolic links from the devfs name space to the conventional249249-names. More details on devfs can be found on the DEVFS home site at250250-<http://www.atnf.csiro.au/~rgooch/linux/> or in the file kernel251251-documentation files, .../linux/Documentation/filesystems/devfs/README.252252-253253-If you are using devfs, existing devices are automatically created within254254-the devfs name space. Normal devices will be tts/F0 - tts/F255 and callout255255-devices will be cua/F0 - cua/F255. With devfs installed, ip2mkdev will256256-create symbolic links in /dev from the old conventional names to the newer257257-devfs names as follows:258258-259259- /dev/ip2ipl[n] -> /dev/ip2/ipl[n] n = 0 - 3260260- /dev/ip2stat[n] -> /dev/ip2/stat[n] n = 0 - 3261261- /dev/ttyF[n] -> /dev/tts/F[n] n = 0 - 255262262- /dev/cuf[n] -> /dev/cua/F[n] n = 0 - 255263263-264264-Only devices for existing ports and boards will be created.265265-266266-IMPORTANT NOTE: The naming convention used for devfs by this driver267267-was changed from 1.2.12 to 1.2.13. The old naming convention was to268268-use ttf/%d for the tty device and cuf/%d for the cua device. That269269-has been changed to conform to an agreed-upon standard of placing270270-all the tty devices under tts. The device names are now tts/F%d for271271-the tty device and cua/F%d for the cua devices. If you were using272272-the older devfs names, you must update for the newer convention.273273-274274-You do not need to run ip2mkdev if you are using devfs and only want to275275-use the devfs native device names.276276-277277-278278-7. NOTES260260+6. NOTES279261280262This is a release version of the driver, but it is impossible to test it281263in all configurations of Linux. If there is any anomalous behaviour that 282264does not match the standard serial port's behaviour please let us know.283265284266285285-8. ip2mkdev shell script267267+7. ip2mkdev shell script286268287269Previously, this script was simply attached here. It is now attached as a288270shar archive to make it easier to extract the script from the documentation.
-2
Documentation/filesystems/00-INDEX
···2626 - info on the cram filesystem for small storage (ROMs etc).2727dentry-locking.txt2828 - info on the RCU-based dcache locking model.2929-devfs/3030- - directory containing devfs documentation.3129directory-locking3230 - info about the locking scheme used for directory operations.3331dlmfs.txt
+1-1
Documentation/filesystems/tmpfs.txt
···3939 tmpfs /dev/shm tmpfs defaults 0 040404141 Remember to create the directory that you intend to mount tmpfs on4242- if necessary (/dev/shm is automagically created if you use devfs).4242+ if necessary.43434444 This mount is _not_ needed for SYSV shared memory. The internal4545 mount is used for that. (In the 2.3 kernel versions it was
+2-2
Documentation/input/input.txt
···68686969 crw-r--r-- 1 root root 13, 63 Mar 28 22:45 mice70707171- This device has to be created, unless you use devfs, in which case it's7272-created automatically. The commands to do create it by hand are:7171+ This device has to be created.7272+ The commands to create it by hand are:73737474 cd /dev7575 mkdir input
+1-1
Documentation/input/joystick.txt
···606061612.2 Device nodes6262~~~~~~~~~~~~~~~~6363-For applications to be able to use the joysticks, in you don't use devfs,6363+For applications to be able to use the joysticks,6464you'll have to manually create these nodes in /dev:65656666cd /dev
-11
Documentation/kernel-docs.txt
···290290 Description: Very nice 92 pages GPL book on the topic of modules291291 programming. Lots of examples.292292293293- * Title: "Device File System (devfs) Overview"294294- Author: Richard Gooch.295295- URL: http://www.atnf.csiro.au/people/rgooch/linux/docs/devfs.html296296- Keywords: filesystem, /dev, devfs, dynamic devices, major/minor297297- allocation, device management.298298- Description: Document describing Richard Gooch's controversial299299- devfs, which allows for dynamic devices, only shows present300300- devices in /dev, gets rid of major/minor numbers allocation301301- problems, and allows for hundreds of identical devices (which some302302- USB systems might demand soon).303303-304293 * Title: "I/O Event Handling Under Linux"305294 Author: Richard Gooch.306295 URL: http://www.atnf.csiro.au/~rgooch/linux/docs/io-events.html
+1-3
Documentation/s390/3270.txt
···111111 config3270.sh. Inspect the output script it produces,112112 /tmp/mkdev3270, and then run that script. This will create the113113 necessary character special device files and make the necessary114114- changes to /etc/inittab. If you have selected DEVFS, the driver115115- itself creates the device files, and /tmp/mkdev3270 only changes116116- /etc/inittab.114114+ changes to /etc/inittab.117115118116 Then notify /sbin/init that /etc/inittab has changed, by issuing119117 the telinit command with the q operand:
+1-2
Documentation/scsi/osst.txt
···56565757Now, your osst driver is inside the kernel or available as a module,5858depending on your choice during kernel config. You may still need to create5959-the device nodes by calling the Makedevs.sh script (see below) manually,6060-unless you use a devfs kernel, where this won't be needed.5959+the device nodes by calling the Makedevs.sh script (see below) manually.61606261To load your module, you may use the command 6362modprobe osst
-20
Documentation/sound/alsa/ALSA-Configuration.txt
···5757 - Default: 15858 - For auto-loading more than one card, specify this5959 option together with snd-card-X aliases.6060- device_mode6161- - permission mask for dynamic sound device filesystem6262- - This is available only when DEVFS is enabled6363- - Default: 06666464- - E.g.: device_mode=0660656066616762 Module snd-pcm-oss···1908191319091914Please note that the device mapping above may be varied via the module19101915options of snd-pcm-oss module.19111911-19121912-19131913-DEVFS support19141914-=============19151915-19161916-The ALSA driver fully supports the devfs extension.19171917-You should add lines below to your devfsd.conf file:19181918-19191919-LOOKUP snd MODLOAD ACTION snd19201920-REGISTER ^sound/.* PERMISSIONS root.audio 66019211921-REGISTER ^snd/.* PERMISSIONS root.audio 66019221922-19231923-Warning: These lines assume that you have the audio group in your system.19241924- Otherwise replace audio word with another group name (root for19251925- example).192619161927191719281918Proc interfaces (/proc/asound)
+2-52
Documentation/uml/UserModeLinux-HOWTO.txt
···157157 13. What to do when UML doesn't work158158159159 13.1 Strange compilation errors when you build from source160160- 13.2 UML hangs on boot after mounting devfs160160+ 13.2 (obsolete)161161 13.3 A variety of panics and hangs with /tmp on a reiserfs filesystem162162 13.4 The compile fails with errors about conflicting types for 'open', 'dup', and 'waitpid'163163 13.5 UML doesn't work when /tmp is an NFS filesystem···377377378378 where 'x' is the version in your pool. Note that you will not get the379379 bug fixes and enhancements that have gone into subsequent releases.380380-381381-382382- If you build your own kernel, and want to boot it from one of the383383- filesystems distributed from this site, then, in nearly all cases,384384- devfs must be compiled into the kernel and mounted at boot time. The385385- exception is the SuSE filesystem. For this, devfs must either not be386386- in the kernel at all, or "devfs=nomount" must be on the kernel command387387- line. Any disagreement between the kernel and the filesystem being388388- booted about whether devfs is being used will result in the boot389389- getting no further than single-user mode.390390-391391-392392- If you don't want to use devfs, you can remove the need for it from a393393- filesystem by copying /dev from someplace, making a bunch of /dev/ubd394394- devices:395395-396396-397397- UML# for i in 0 1 2 3 4 5 6 7; do mknod ubd$i b 98 $i; done398398-399399-400400-401401-402402- and changing /etc/fstab and /etc/inittab to refer to the non-devfs403403- devices.404404-405380406381407382 22..22.. CCoommppiilliinngg aanndd iinnssttaalllliinngg kkeerrnneell mmoodduulleess···814839 +o None - device=none815840816841817817- This causes the device to disappear. If you are using devfs, the818818- device will not appear in /dev. If not, then attempts to open it819819- will return -ENODEV.842842+ This causes the device to disappear.820843821844822845···38683895 /usr/src/linux/asm-i386. Then, move your UML pool someplace else and38693896 build it there. Also see below, where a more specific set of symptoms38703897 is described.38713871-38723872-38733873-38743874- 1133..22.. UUMMLL hhaannggss oonn bboooott aafftteerr mmoouunnttiinngg ddeevvffss38753875-38763876- The boot looks like this:38773877-38783878-38793879- VFS: Mounted root (ext2 filesystem) readonly.38803880- Mounted devfs on /dev38813881-38823882-38833883-38843884-38853885- You're probably running a recent distribution on an old machine. I38863886- saw this with the RH7.1 filesystem running on a Pentium. The shared38873887- library loader, ld.so, was executing an instruction (cmove) which the38883888- Pentium didn't support. That instruction was apparently added later.38893889- If you run UML under the debugger, you'll see the hang caused by one38903890- instruction causing an infinite SIGILL stream.38913891-38923892-38933893- The fix is to boot UML on an older filesystem.389438983895389938963900
-14
Documentation/usb/acm.txt
···4949 Unfortunately many modems and most ISDN TAs use proprietary interfaces and5050thus won't work with this drivers. Check for ACM compliance before buying.51515252- The driver (with devfs) creates these devices in /dev/usb/acm:5353-5454- crw-r--r-- 1 root root 166, 0 Apr 1 10:49 05555- crw-r--r-- 1 root root 166, 1 Apr 1 10:49 15656- crw-r--r-- 1 root root 166, 2 Apr 1 10:49 25757-5858- And so on, up to 31, with the limit being possible to change in acm.c to up5959-to 256, so you can use up to 256 USB modems with one computer (you'll need6060-three USB cards for that, though).6161-6262- If you don't use devfs, then you can create device nodes with the same6363-minor/major numbers anywhere you want, but either the above location or6464-/dev/usb/ttyACM0 is preferred.6565-6652 To use the modems you need these modules loaded:67536854 usbcore.ko
-5
Documentation/usb/usb-serial.txt
···1313 Currently the driver can handle up to 256 different serial interfaces at1414 one time. 15151616- If you are not using devfs:1716 The major number that the driver uses is 188 so to use the driver,1817 create the following nodes:1918 mknod /dev/ttyUSB0 c 188 0···2425 .2526 mknod /dev/ttyUSB254 c 188 2542627 mknod /dev/ttyUSB255 c 188 2552727-2828- If you are using devfs:2929- The devices supported by this driver will show up as3030- /dev/usb/tts/{0,1,...}31283229 When the device is connected and recognized by the driver, the driver3330 will print to the system log, which node(s) the device has been bound
+1-2
drivers/block/Kconfig
···207207 module will be called umem.208208209209 The umem driver has not yet been allocated a MAJOR number, so210210- one is chosen dynamically. Use "devfs" or look in /proc/devices211211- for the device number210210+ one is chosen dynamically.212211213212config BLK_DEV_UBD214213 bool "Virtual block device"
+1-4
drivers/char/mwave/README
···4141Accessing the driver4242--------------------43434444-You must also create a node for the driver. Without devfs:4444+You must also create a node for the driver:4545 mkdir -p /dev/modems4646 mknod --mode=660 /dev/modems/mwave c 10 2194747-With devfs:4848- mkdir -p /dev/modems4949- ln -s ../misc/mwave /dev/modems/mwave5047
+1-2
drivers/media/radio/Kconfig
···195195 ---help---196196 Choose Y here if you want to see RDS/RBDS information like197197 RadioText, Programme Service name, Clock Time and date, Programme198198- TYpe and Traffic Announcement/Programme identification. You also199199- need to say Y to "miroSOUND PCM20 radio" and devfs!198198+ Type and Traffic Announcement/Programme identification.200199201200 It's not possible to read the raw RDS packets from the device, so202201 the driver cant provide an V4L interface for this. But the
+2-2
drivers/media/video/pwc/philips.txt
···175175 - If a device node is already occupied, registration will fail and176176 the webcam is not available.177177 - You can have up to 64 video devices; be sure to make enough device178178- nodes in /dev if you want to spread the numbers (this does not apply179179- to devfs). After /dev/video9 comes /dev/video10 (not /dev/videoA).178178+ nodes in /dev if you want to spread the numbers.179179+ After /dev/video9 comes /dev/video10 (not /dev/videoA).180180 - If a camera does not match any dev_hint, it will simply get assigned181181 the first available device node, just as it used to be.182182
-2
drivers/sbus/char/cpwatchdog.c
···1010 * timer interrupts. We use a timer to periodically 1111 * reset 'stopped' watchdogs on affected platforms.1212 *1313- * TODO: DevFS support (/dev/watchdogs/0 ... /dev/watchdogs/2)1414- *1513 * Copyright (c) 2000 Eric Brower (ebrower@usa.net)1614 */1715