From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.redswitch.com ([206.14.68.143] helo=redswitch.com) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 17joE3-0003mN-00 for ; Tue, 27 Aug 2002 22:50:15 +0100 Received: from [192.168.5.81] (account xjin HELO redswitch.com) by redswitch.com (CommuniGate Pro SMTP 3.5.9) with ESMTP id 2508461 for linux-mtd@lists.infradead.org; Tue, 27 Aug 2002 14:50:25 -0700 Message-ID: <3D6BF554.3090102@redswitch.com> Date: Tue, 27 Aug 2002 14:55:32 -0700 From: "Xiaogeng (Shawn) Jin" MIME-Version: 1.0 To: linux-mtd@lists.infradead.org Subject: how to get mtd_info in kernel space? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: Hi, 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? Thanks. - Shawn.