From: Greg KH <greg@kroah.com>
To: Manu Abraham <manu@kromtek.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Minor numbers under 2.6
Date: Wed, 2 Jun 2004 07:49:31 -0700 [thread overview]
Message-ID: <20040602144931.GA25424@kroah.com> (raw)
In-Reply-To: <200406021519.32128.manu@kromtek.com>
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
next prev parent reply other threads:[~2004-06-02 14:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-02 11:19 Manu Abraham
2004-06-02 14:49 ` Greg KH [this message]
2004-06-02 15:10 ` Eric BEGOT
2004-06-02 15:16 ` Greg KH
2004-06-02 17:49 ` Manu Abraham
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=20040602144931.GA25424@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=manu@kromtek.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®