Skip to contentSkip to conversation

'modalias' sysfs export

PATCH Andrey Borzenkov 1 participant 1 message Mar 11, 2006

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines
Quoted 5 lines · Arjan van de Ven
Quoted 2 lines · Pierre Ossman

Here is a patch for doing multi line modalias for PNP devices. This will break udev, so that needs to be updated first.

how could this EVER be acceptable???

Quoted 7 lines

Soon I would hope. The modalias attribute currently only supports one alias (i.e. one line). This isn't enough for PNP, so if we want to support that bus (which I assume we do) we need to extend the interface. udev could be updated and be backwards compatible, the kernel can not (excluding adding another interface to the same data). So this patch should lag the update to udev a bit (i.e. I'm not suggesting it be applied now).

actually it is not that much udev but modprobe issue and modprobe already supports multiple modules on command line (modprobe --all, module-init-tools 3.3.2 that I have here). So assuming module aliases cannot have embedded spaces and udev properly space-splits command line (I have not checked, but it should be the case IIRC) udev simply has to use 'modprobe --all $modalias' to be compatible with this patch. It also remains backwards compatible with single-alias modalias.

Or do I miss something obvious here? I understand that alternative is to make every alias appear as separate device in sysfs, but I do not know PNP structure well enough to decide if it makes sense.

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFEEwPNR6LMutpd94wRAhpTAJ9DQ6gj4SM+6Arxqxb3hM5PA01cHACgjZQs yrONSgp3+TAo1p2qzR1tAHg=
=eq0n
-----END PGP SIGNATURE-----