how to get mtd_info in kernel space?

David Woodhouse dwmw2 at infradead.org
Tue Aug 27 18:03:19 EDT 2002


xjin at 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






More information about the linux-mtd mailing list