From: Manu Abraham <manu@kromtek.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Minor numbers under 2.6
Date: Wed, 2 Jun 2004 21:49:30 +0400 [thread overview]
Message-ID: <200406022149.30180.manu@kromtek.com> (raw)
In-Reply-To: <20040602144931.GA25424@kroah.com>
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
next prev parent reply other threads:[~2004-06-02 18:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-02 11:19 Minor numbers under 2.6 Manu Abraham
2004-06-02 14:49 ` Greg KH
2004-06-02 15:10 ` Eric BEGOT
2004-06-02 15:16 ` Greg KH
2004-06-02 17:49 ` Manu Abraham [this message]
2004-06-02 18:44 ` Valdis.Kletnieks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200406022149.30180.manu@kromtek.com \
--to=manu@kromtek.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.