Re: Minor numbers under 2.6

From: Manu Abraham
Date: Wed Jun 02 2004 - 13:08:27 EST


On Wednesday 02 Jun 2004 6:49 pm, Greg KH wrote:
> 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


Thanks a lot, I was breaking my head to understand what the hell was going
on.

Thanks again,

Regards,
Manu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/