Hi, I am having trouble with adding sysfs support to my driver targeted at 2.6.19.2. Using kobject_add() and passing in NULL for parent I can add a directory which shows up in /sys. I can then add files(attributes) and the associated functions to be able to read and write to it. That is all fine.
What do I pass in for parent if I want my directory to be in /sys/devices/system? It needs to be a pointer to a struct kobject. How do I find the correct kobject to use as my parent?
thanks
john ware
sysfs_create_file :p
sysfs_create_file :p
adding dir to sysfs
thanks for your reply, but, I'm trying to add a directory not a file.
You create a new kset for
You create a new kset for it, that's all.