patch-1.3.29 linux/include/linux/kdev_t.h

Next file: linux/include/linux/pci.h
Previous file: linux/include/asm-i386/pgtable.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.28/linux/include/linux/kdev_t.h linux/include/linux/kdev_t.h
@@ -104,11 +104,11 @@
 #else /* __KERNEL__ */
 
 /*
-Some unfortunate programs want their definitions of MAJOR and MINOR
-from the kernel sources.
+Some programs want their definitions of MAJOR and MINOR and MKDEV
+from the kernel sources. These must be the externally visible ones.
 */
 #define MAJOR(dev)	((dev)>>8)
 #define MINOR(dev)	((dev) & 0xff)
-
+#define MKDEV(ma,mi)	((ma)<<8 | (mi))
 #endif /* __KERNEL__ */
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this