public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Creation of driver-specific sysfs attributes
@ 2004-07-07 15:21 Marcelo Tosatti
  2004-07-07 21:47 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Marcelo Tosatti @ 2004-07-07 15:21 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

Hi Greg, others,

Hope this is not a FAQ.

I want to export some read-only attributes (statistics) from cyclades.c char 
driver to userspace via sysfs. 

I can't figure out the right place to do it - I could create a class under
/sys/class/cyclades for example, but that doesnt sound right since this 
is not a "class" of device, but a device itself.

Hooking the statistics into /sys/class/tty/ttyC$/ sounds reasonable, but
its not possible it seems because "tty" is a class_simple class, which only implements 
the "dev" attribute.

What is the appropriate place for such driver-specific attributes?

TIA


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

end of thread, other threads:[~2004-07-07 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-07 15:21 Creation of driver-specific sysfs attributes Marcelo Tosatti
2004-07-07 21:47 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox