Prototypes of two functions:
int sysfs_create_group(struct kobject *kobj, const struct attribute_group *grp) int sysfs_create_file(struct kobject * kobj, const struct attribute * attr)
It seems to me that these two functions will create attributes in the kobj->name directory in sysfs . The only difference I can find is group func can create an attribute group at a time since the file has only one attribute. Are there any other hobbies? Or my understanding of the wrong functions?
source share