Is there any way to add an attribute under sysfs at the “platform” level?
Roman Storozhenko
romeusmeister at gmail.com
Sun Jun 18 10:38:36 EDT 2017
Hello everybody!
I am trying to modify "pcspkr" driver undere linux kernel source tree. I added a new line there:
sample_id_dir = kobject_create_and_add("devices/platform/pcspkr/sample", NULL);
It works and creates kobject without errors. I checked this in the driver code and in the dmesg output. But "sample" catalog isn't appear under "/sys/devices/platform/pcspkr/".
What is wrong with that code ?
Thanks in advance,
Roman Storozhenko
More information about the Kernelnewbies
mailing list