patch-2.4.19 linux-2.4.19/include/linux/kdev_t.h
Next file: linux-2.4.19/include/linux/kernel.h
Previous file: linux-2.4.19/include/linux/kd.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/include/linux/kdev_t.h
- Orig date:
Mon Feb 25 11:38:13 2002
diff -urN linux-2.4.18/include/linux/kdev_t.h linux-2.4.19/include/linux/kdev_t.h
@@ -76,12 +76,13 @@
extern const char * kdevname(kdev_t); /* note: returns pointer to static data! */
/* 2.5.x compatibility */
-
-#define mk_kdev(a,b) MKDEV(a,b)
-#define major(d) MAJOR(d)
-#define minor(d) MINOR(d)
-#define kdev_same(a,b) (a==b)
-#define kdev_none(d) (!(d))
+#define mk_kdev(a,b) MKDEV(a,b)
+#define major(d) MAJOR(d)
+#define minor(d) MINOR(d)
+#define kdev_same(a,b) ((a) == (b))
+#define kdev_none(d) (!(d))
+#define kdev_val(d) ((unsigned int)(d))
+#define val_to_kdev(d) ((kdev_t)(d))
/*
As long as device numbers in the outside world have 16 bits only,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)