device_create_file returns 0 but doesn't work
I am trying to add an additional sysfs attribute to a device (LED) that is created by another driver. (My ultimate goal is to provide a way for a userspace application to use the functionality provided by led_blink_set, which doesn't currently seem to be possible.)
The kernel module code that sets up all the GPIOs & LEDs in my NAS is at:
The call to device_create_file is at line 373.
device_create_file is returning 0, but the "foo" attribute is not being created. ("find /sys -name '*foo*'" doesn't find anything, so I'm not just looking in the wrong place.)
What am I doing wrong?
Thanks!
Signature · 4 lines
======================================================================== Ian Pilcher [email protected] Sometimes there's nothing left to do but crash and burn...or die trying. ========================================================================
Quoted 4 lines · Ian Pilcher
I am trying to add an additional sysfs attribute to a device (LED) that is created by another driver. (My ultimate goal is to provide a way for a userspace application to use the functionality provided by
led_blink_set, which doesn't currently seem to be possible.)
Turns out it is possible, with the LED timer trigger, so this issue is now moot.
Quoted 11 lines
The kernel module code that sets up all the GPIOs & LEDs in my NAS is at:
The call to
device_create_fileis at line 373.
device_create_fileis returning 0, but the "foo" attribute is not being created. ("find /sys -name '*foo*'" doesn't find anything, so I'm not just looking in the wrong place.)
Still rather odd that it doesn't work, however, since ledtrig-timer.c seems to do pretty much the same thing. Oh well.
Signature · 4 lines
======================================================================== Ian Pilcher [email protected] Sometimes there's nothing left to do but crash and burn...or die trying. ========================================================================