* how to get mtd_info in kernel space? @ 2002-08-27 21:55 Xiaogeng (Shawn) Jin 2002-08-27 22:03 ` David Woodhouse 2002-08-27 22:04 ` David Woodhouse 0 siblings, 2 replies; 4+ messages in thread From: Xiaogeng (Shawn) Jin @ 2002-08-27 21:55 UTC (permalink / raw) To: linux-mtd 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to get mtd_info in kernel space? 2002-08-27 21:55 how to get mtd_info in kernel space? Xiaogeng (Shawn) Jin @ 2002-08-27 22:03 ` David Woodhouse 2002-08-27 22:04 ` David Woodhouse 1 sibling, 0 replies; 4+ messages in thread From: David Woodhouse @ 2002-08-27 22:03 UTC (permalink / raw) To: Xiaogeng (Shawn) Jin; +Cc: linux-mtd 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to get mtd_info in kernel space? 2002-08-27 21:55 how to get mtd_info in kernel space? Xiaogeng (Shawn) Jin 2002-08-27 22:03 ` David Woodhouse @ 2002-08-27 22:04 ` David Woodhouse 2002-08-27 23:22 ` Xiaogeng (Shawn) Jin 1 sibling, 1 reply; 4+ messages in thread From: David Woodhouse @ 2002-08-27 22:04 UTC (permalink / raw) To: Xiaogeng (Shawn) Jin; +Cc: linux-mtd Er, note also that if you've got a special device which contains only something odd like MAC address for a built-in network card, you don't have to register it with the core MTD code; you can make it available only to your network card driver via some private mechanism if you want. -- dwmw2 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to get mtd_info in kernel space? 2002-08-27 22:04 ` David Woodhouse @ 2002-08-27 23:22 ` Xiaogeng (Shawn) Jin 0 siblings, 0 replies; 4+ messages in thread From: Xiaogeng (Shawn) Jin @ 2002-08-27 23:22 UTC (permalink / raw) To: David Woodhouse; +Cc: linux-mtd Thanks for the answer. My proposed device will contain basically some configuration data. But they are not as simple as MAC address. The size will grow dynamically. I want such a flexible function to get minor number because our partitions may be changed later thus those numbers cannot be fixed. Anyway, since now the only way is to use the fix minor number, I'm OK with current mechanism. ;) - Shawn. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-08-27 23:16 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2002-08-27 21:55 how to get mtd_info in kernel space? Xiaogeng (Shawn) Jin 2002-08-27 22:03 ` David Woodhouse 2002-08-27 22:04 ` David Woodhouse 2002-08-27 23:22 ` Xiaogeng (Shawn) Jin
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.