register mtdchar devices in sysfs
Artem B. Bityutskiy
dedekind at infradead.org
Fri Apr 28 01:40:34 EDT 2006
On Thu, 2006-04-27 at 19:55 +0200, Andre Puschmann wrote:
> hi folks,
> i am trying to get mtdchar devices to work with sysfs + udev.
> my goal is that every mtd-partition gets a device attribute called
> partname which i can use in my udev-rules to give them explicit names
> like /dev/filesystem or /dev/kernel (instead of /dev/mtd0 and /dev/mtd1
> in case that they change their order on the flash device).
> to do so i modified mdrchar.c a little bit to add a attribute "partname"
> in every specific sysfs-folder.
> well, this is working so far with a dummy entry "partname" but how can i
> get the specific partition name stored in "struct mtd_info*" out of
> "struct class_device" to set it correctly in read_partname()???
I wonder, why mtd->name is not suitable?
--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.
More information about the linux-mtd
mailing list