Sysfs - export sysfs_create_subdir?
From: Jonathan Cameron
Date: Fri Jul 22 2011 - 13:43:22 EST
I have a couple of cases in IIO where under some conditions
we end up using dummy attr_groups (no elements) to initialize
a sub directory before dynamically creating all of its attributes.
Now having dummy groups in the IIO core is fine, but it does seem
a little messy.
The obvious choice would be to put together a small wrapper function
for sysfs_create_subdir that also does sysfs_get on the result.
Anyone have any strong feelings on whether this is worthwhile or not?
It'll save me about 16 lines of code, so not exactly a big point,
but nice to get it right none the less!
If there is a way of doing this cleanly that I'm missing, then sorry
for the noise and please tell me what it is!
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/