Which means that it should not be normal sysfs, but rather debugfs, if I+struct pmalloc_data {sysfs attributes aren't free, you know. I appreciate you want something
+ struct gen_pool *pool; /* Link back to the associated pool. */
+ bool protected; /* Status of the pool: RO or RW. */
+ struct kobj_attribute attr_protected; /* Sysfs attribute. */
+ struct kobj_attribute attr_avail; /* Sysfs attribute. */
+ struct kobj_attribute attr_size; /* Sysfs attribute. */
+ struct kobj_attribute attr_chunks; /* Sysfs attribute. */
+ struct kobject *pool_kobject;
+ struct list_head node; /* list of pools */
+};
to help debug / analyse, but having one file for the whole subsystem or
at least one per pool would be a better idea.
understand correctly, since in sysfs 1 value -> 1 file.