From: David Woodhouse <dwmw2@infradead.org>
To: "Xiaogeng (Shawn) Jin" <xjin@redswitch.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: how to get mtd_info in kernel space?
Date: Tue, 27 Aug 2002 23:03:19 +0100 [thread overview]
Message-ID: <30372.1030485799@redhat.com> (raw)
In-Reply-To: <3D6BF554.3090102@redswitch.com>
xjin@redswitch.com said:
> get_mtd_device() is used to get an MTD device with a specific minor
> number. I have several MTD devices enabled and how can I get their
> minor numbers which can be used to invoke get_mtd_device()? What
> function call?
At the moment you can't. You have to get each one from 0 to MAX_MTD_DEVICES
and check whether it's the one you want. We could perhaps implement a
get_mtd_device_byname() since JFFS2 wants that too now.
What do you want it for?
--
dwmw2
next prev parent reply other threads:[~2002-08-27 22:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-27 21:55 how to get mtd_info in kernel space? Xiaogeng (Shawn) Jin
2002-08-27 22:03 ` David Woodhouse [this message]
2002-08-27 22:04 ` David Woodhouse
2002-08-27 23:22 ` Xiaogeng (Shawn) Jin
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=30372.1030485799@redhat.com \
--to=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=xjin@redswitch.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 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.