Skip to contentSkip to conversation

Directory in sysfs being truncated

DISCUSSION Larry Finger 2 participants 2 messages Apr 3, 2009

lore
Share & tools
lore
#0 lore raw

Greg and Kay,

The wireless driver b43legacy uses a leds-class entry to interact with the rfkill subsystem to control the radio LED. The name under which the LED is registered is "b43legacy-phy0::radio", which is 21 characters in length. When the corresponding directory is created in sysfs, the name is truncated to 19 characters due to the "#define BUS_ID_SIZE 20" statement in include/linux/device.h.

Marcel Holtmann wrote that he understood that this limitation will be eliminated, and suggested that I contact you regarding this matter. I was thinking of changing the driver so as to be able to control the naming; however, if this limitation will be relaxed then I will just wait.

Thanks,

Larry

#1 lore raw
Quoted 10 lines · Larry Finger

The wireless driver b43legacy uses a leds-class entry to interact with the rfkill subsystem to control the radio LED. The name under which the LED is registered is "b43legacy-phy0::radio", which is 21 characters in length. When the corresponding directory is created in sysfs, the name is truncated to 19 characters due to the "#define BUS_ID_SIZE 20" statement in include/linux/device.h.

Marcel Holtmann wrote that he understood that this limitation will be eliminated, and suggested that I contact you regarding this matter. I was thinking of changing the driver so as to be able to control the naming; however, if this limitation will be relaxed then I will just wait.

The limit is gone already:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=1fa5ae857bb14f6046205171d98506d8112dd74e

Kay