Messages in this thread | | | From | "H. Peter Anvin" <> | Subject | Re: major/minor split | Date | 20 Mar 2003 16:04:58 -0800 |
| |
Followup to: <Pine.LNX.4.44.0303210016360.5042-100000@serv> By author: Roman Zippel <zippel@linux-m68k.org> In newsgroup: linux.dev.kernel > > I mean via mknod, e.g. if the user has a major/minor number, how should it > be converted to a dev_t number? >
Using MKDEV(). Basically, use the old format if it fits (for compatibility), otherwise the new format.
-hpa -- <hpa@transmeta.com> at work, <hpa@zytor.com> in private! "Unix gives you enough rope to shoot yourself in the foot." Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |