lkml.org 
[lkml]   [2004]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Minor numbers under 2.6
On Wed, Jun 02, 2004 at 03:19:32PM +0400, Manu Abraham wrote:
> Hi,
> Can somebody clarify a question that i have ?
>
> Say under 2.4 kernel, char device drivers had a minor number of int. In the
> 2.6 kernels, this number was increased to 20 bits from 8 bits. Under 2.6 i
> could use "mknod -c major, minor".
>
> How can i achieve something similar with 2.6 taking into consideration that i
> have to create more than 255 minors ?

The same way:
# mknod foo c 100 10000
# ls -l foo
crw-r--r-- 1 root root 100, 10000 Jun 2 07:48 foo
Just make sure you have a up to date glibc.

Hope this helps,

greg k-h
-
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 14:03    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site