lkml.org 
[lkml]   [2003]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: major/minor split
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.023 / U:1.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site