So what is the best solution?
If it is a pointer, you can store other device info besides major/minor
in the struct, eliminating the need to scan arrays of such information
indexed by major/minor.
IMHO, if kdev_t is unsigned long, you get larger major/minors on 32-bit
and 64-bit platforms, while still only carrying around a "machine int".
Jeff
-- Custom driver development | Never worry about theory as long Open source programming | as the machinery does what it's | supposed to do. -- R. A. Heinlein- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/