mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: "Kenneth Chen" <kenneth.w.chen@intel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Patch - make config_max_raw_devices work
Date: Mon, 15 Mar 2004 18:14:06 -0800	[thread overview]
Message-ID: <20040315181406.2f2d8f38.akpm@osdl.org> (raw)
In-Reply-To: <200403160053.i2G0rNm31241@unix-os.sc.intel.com>

"Kenneth Chen" <kenneth.w.chen@intel.com> wrote:
>
> Even though there is a CONFIG_MAX_RAW_DEVS option, it doesn't actually
>  increase the number of raw devices beyond 256 because during the char
>  registration, it uses the standard register_chrdev() interface which
>  has hard coded 256 minor in it.  Here is a patch that fix this problem
>  by using register_chrdev_region() and cdev_(init/add/del) functions.

Badari wrote basically the same patch a couple of months back.  I dropped
it then, too ;)

raw is a deprecated interface and if we keep on adding new features to it,
we will never be rid of the thing.  If your application requires more than
256 raw devices, please convert it to open the block device directly,
passing in the O_DIRECT flag.


  reply	other threads:[~2004-03-16  2:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-16  0:53 Kenneth Chen
2004-03-16  2:14 ` Andrew Morton [this message]
2004-03-16  2:39   ` Anton Blanchard
2004-03-16  4:17     ` Kenneth Chen
2004-03-16  5:03     ` Andrew Morton

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=20040315181406.2f2d8f38.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=kenneth.w.chen@intel.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 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®