All of lore.kernel.org
 help / color / mirror / Atom feed
* Sysfs - export sysfs_create_subdir?
@ 2011-07-22 17:43 Jonathan Cameron
  2011-07-24  3:18 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2011-07-22 17:43 UTC (permalink / raw)
  To: LKML, Greg KH

Hi All,

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!

Jonathan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-02 17:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-22 17:43 Sysfs - export sysfs_create_subdir? Jonathan Cameron
2011-07-24  3:18 ` Greg KH
2011-07-25  9:17   ` Jonathan Cameron
2011-08-02 17:18     ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.