linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to write rules for mtd based devices
@ 2008-11-03 10:12 Juergen Beisert
  2008-11-03 10:27 ` Kay Sievers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Juergen Beisert @ 2008-11-03 10:12 UTC (permalink / raw)
  To: linux-hotplug

Hello list,

has anybody an idea how to write some rules to match devices from the mtd
framework?

All I get is:
------------------------------------------------------------------
$ udevadm info -a -p /sys/block/mtdblock5

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/devices/virtual/block/mtdblock5':
    KERNEL="mtdblock5"
    SUBSYSTEM="block"
    DRIVER=""
    ATTR{range}="1"
    ATTR{removable}="0"
    ATTR{ro}="0"
    ATTR{size}="1024"
    ATTR{capability}="10"
    ATTR{stat}="       0        0        0        0        0        0        0        0        0        0        0"
------------------------------------------------------------------

And its mostly the same for all the other mtdblock devices.

The other frameworks like SATA and USB providing much more information about
their bus controllers and connected devices to find adequate matching rules.
But mtd seems very uncommunicative, or do I query the wrong path to search for
usefull rules to match?

Regards,
Juergen
-- 
Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
    Handelsregister: Amtsgericht Hildesheim, HRA 2686
         Vertretung Sued/Muenchen, Germany
   Phone: +49-8766-939 228 |  Fax: +49-5121-206917-9

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-11-03 14:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 10:12 How to write rules for mtd based devices Juergen Beisert
2008-11-03 10:27 ` Kay Sievers
2008-11-03 11:12 ` Juergen Beisert
2008-11-03 13:18 ` Kay Sievers
2008-11-03 13:21 ` Kay Sievers
2008-11-03 13:39 ` Juergen Beisert
2008-11-03 14:11 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).