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

[PATCH] devfs: Last little devfs cleanups throughout the kernel tree.

Just removes a few unused #defines and fixes some comments due to
devfs now being gone.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

+18 -52
+6 -9
Documentation/Changes
··· 181 181 -------------------- 182 182 183 183 A driver has been added to allow updating of Intel IA32 microcode, 184 - accessible as both a devfs regular file and as a normal (misc) 185 - character device. If you are not using devfs you may need to: 184 + accessible as a normal (misc) character device. If you are not using 185 + udev you may need to: 186 186 187 187 mkdir /dev/cpu 188 188 mknod /dev/cpu/microcode c 10 184 ··· 201 201 udev 202 202 ---- 203 203 udev is a userspace application for populating /dev dynamically with 204 - only entries for devices actually present. udev replaces devfs. 204 + only entries for devices actually present. udev replaces the basic 205 + functionality of devfs, while allowing persistant device naming for 206 + devices. 205 207 206 208 FUSE 207 209 ---- ··· 233 231 enable it to operate over diverse media layers. If you use PPP, 234 232 upgrade pppd to at least 2.4.0. 235 233 236 - If you are not using devfs, you must have the device file /dev/ppp 234 + If you are not using udev, you must have the device file /dev/ppp 237 235 which can be made by: 238 236 239 237 mknod /dev/ppp c 108 0 240 238 241 239 as root. 242 - 243 - If you use devfsd and build ppp support as modules, you will need 244 - the following in your /etc/devfsd.conf file: 245 - 246 - LOOKUP PPP MODLOAD 247 240 248 241 Isdn4k-utils 249 242 ------------
-5
Documentation/DocBook/kernel-api.tmpl
··· 348 348 </sect1> 349 349 </chapter> 350 350 351 - <chapter id="devfs"> 352 - <title>The Device File System</title> 353 - !Efs/devfs/base.c 354 - </chapter> 355 - 356 351 <chapter id="sysfs"> 357 352 <title>The Filesystem for Exporting Kernel Objects</title> 358 353 !Efs/sysfs/file.c
+3 -3
Documentation/README.DAC960
··· 78 78 terms are in use in the Mylex documentation; I have chosen to standardize on 79 79 the more generic "Logical Drive" and "Drive Group". 80 80 81 - DAC960 RAID disk devices are named in the style of the Device File System 82 - (DEVFS). The device corresponding to Logical Drive D on Controller C is 83 - referred to as /dev/rd/cCdD, and the partitions are called /dev/rd/cCdDp1 81 + DAC960 RAID disk devices are named in the style of the obsolete Device File 82 + System (DEVFS). The device corresponding to Logical Drive D on Controller C 83 + is referred to as /dev/rd/cCdD, and the partitions are called /dev/rd/cCdDp1 84 84 through /dev/rd/cCdDp7. For example, partition 3 of Logical Drive 5 on 85 85 Controller 2 is referred to as /dev/rd/c2d5p3. Note that unlike with SCSI 86 86 disks the device names will not change in the event of a disk drive failure.
+8 -16
Documentation/initrd.txt
··· 67 67 as the last process has closed it, all data is freed and /dev/initrd 68 68 can't be opened anymore. 69 69 70 - root=/dev/ram0 (without devfs) 71 - root=/dev/rd/0 (with devfs) 70 + root=/dev/ram0 72 71 73 72 initrd is mounted as root, and the normal boot procedure is followed, 74 73 with the RAM disk still mounted as root. ··· 89 90 procedure should create the /initrd directory. 90 91 91 92 If initrd will not be mounted in some cases, its content is still 92 - accessible if the following device has been created (note that this 93 - does not work if using devfs): 93 + accessible if the following device has been created: 94 94 95 95 # mknod /dev/initrd b 1 250 96 96 # chmod 400 /dev/initrd ··· 117 119 (if space is critical, you may want to use the Minix FS instead of Ext2) 118 120 3) mount the file system, e.g. 119 121 # mount -t ext2 -o loop initrd /mnt 120 - 4) create the console device (not necessary if using devfs, but it can't 121 - hurt to do it anyway): 122 + 4) create the console device: 122 123 # mkdir /mnt/dev 123 124 # mknod /mnt/dev/console c 5 1 124 125 5) copy all the files that are needed to properly use the initrd ··· 149 152 150 153 root=/dev/ram0 init=/linuxrc rw 151 154 152 - if not using devfs, or 153 - 154 - root=/dev/rd/0 init=/linuxrc rw 155 - 156 - if using devfs. (rw is only necessary if writing to the initrd file 157 - system.) 155 + (rw is only necessary if writing to the initrd file system.) 158 156 159 157 With LOADLIN, you simply execute 160 158 ··· 209 217 # exec chroot . what-follows <dev/console >dev/console 2>&1 210 218 211 219 Where what-follows is a program under the new root, e.g. /sbin/init 212 - If the new root file system will be used with devfs and has no valid 213 - /dev directory, devfs must be mounted before invoking chroot in order to 214 - provide /dev/console. 220 + If the new root file system will be used with udev and has no valid 221 + /dev directory, udev must be initialized before invoking chroot in order 222 + to provide /dev/console. 215 223 216 224 Note: implementation details of pivot_root may change with time. In order 217 225 to ensure compatibility, the following points should be observed: ··· 228 236 disk can be freed: 229 237 230 238 # umount /initrd 231 - # blockdev --flushbufs /dev/ram0 # /dev/rd/0 if using devfs 239 + # blockdev --flushbufs /dev/ram0 232 240 233 241 It is also possible to use initrd with an NFS-mounted root, see the 234 242 pivot_root(8) man page for details.
-1
Documentation/ioctl-number.txt
··· 119 119 'c' 00-7F linux/comstats.h conflict! 120 120 'c' 00-7F linux/coda.h conflict! 121 121 'd' 00-FF linux/char/drm/drm/h conflict! 122 - 'd' 00-1F linux/devfs_fs.h conflict! 123 122 'd' 00-DF linux/video_decoder.h conflict! 124 123 'd' F0-FF linux/digi1.h 125 124 'e' all linux/digi1.h conflict!
-4
Documentation/kernel-parameters.txt
··· 35 35 APM Advanced Power Management support is enabled. 36 36 AX25 Appropriate AX.25 support is enabled. 37 37 CD Appropriate CD support is enabled. 38 - DEVFS devfs support is enabled. 39 38 DRM Direct Rendering Management support is enabled. 40 39 EDD BIOS Enhanced Disk Drive Services (EDD) is enabled 41 40 EFI EFI Partitioning (GPT) is enabled ··· 438 439 decnet= [HW,NET] 439 440 Format: <area>[,<node>] 440 441 See also Documentation/networking/decnet.txt. 441 - 442 - devfs= [DEVFS] 443 - See Documentation/filesystems/devfs/boot-options. 444 442 445 443 dhash_entries= [KNL] 446 444 Set number of hash buckets for dentry cache.
-1
drivers/block/viodasd.c
··· 59 59 * numbers 0-255 we get a maximum of 32 disks. 60 60 */ 61 61 #define VIOD_GENHD_NAME "iseries/vd" 62 - #define VIOD_GENHD_DEVFS_NAME "iseries/disc" 63 62 64 63 #define VIOD_VERS "1.64" 65 64
-1
drivers/cdrom/viocd.c
··· 49 49 #include <asm/iseries/vio.h> 50 50 51 51 #define VIOCD_DEVICE "iseries/vcd" 52 - #define VIOCD_DEVICE_DEVFS "iseries/vcd" 53 52 54 53 #define VIOCD_VERS "1.06" 55 54
+1 -1
drivers/md/dm.c
··· 167 167 bioset_free(dm_set); 168 168 169 169 if (unregister_blkdev(_major, _name) < 0) 170 - DMERR("devfs_unregister_blkdev failed"); 170 + DMERR("unregister_blkdev failed"); 171 171 172 172 _major = 0; 173 173
-11
drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
··· 126 126 127 127 int revision; 128 128 129 - #if 0 130 - devfs_handle_t stc_devfs_handle; 131 - #endif 132 - 133 129 struct dvb_frontend* fe; 134 130 }; 135 131 ··· 1742 1746 return -ENODEV; 1743 1747 } 1744 1748 1745 - #if 0 1746 - ttusb->stc_devfs_handle = 1747 - devfs_register(ttusb->adapter->devfs_handle, TTUSB_BUDGET_NAME, 1748 - DEVFS_FL_DEFAULT, 0, 192, 1749 - S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP 1750 - | S_IROTH | S_IWOTH, &stc_fops, ttusb); 1751 - #endif 1752 1749 usb_set_intfdata(intf, (void *) ttusb); 1753 1750 1754 1751 frontend_init(ttusb);