On Tue, 24 Oct 2006 22:47:18 -0400 Jeff Garzik wrote:

> On Tue, Oct 24, 2006 at 07:25:48PM -0700, Ben Greear wrote:
> > From reading the Documentation/filesystems/sysfs.txt, it seems like
> > it is not recommended that one use sysfs for anything other than
> > very simple (and single) attributes.
> > 
> > If you know of a piece of code that actually passes back a struct or
> > other binary blob of data, please point me to it so I can learn from it.
> 
> Please grep for sysfs_create_bin_file, you will find plenty of examples.

Hm, I thought that sysfs binary files were supposed to be
for "transparent" blobs of data, not for structured data.
E.g., a "firmware" blob would be OK.

And I'm looking at current users.  ISTM that this one:

arch/ppc/syslib/mv64x60.c:2443: sysfs_create_bin_file(&mv64xxx_device.dev.kobj, 
&mv64xxx_hs_reg_attr);

in its sysfs read function returns a string (binary data converted
to a string) instead of returning binary data.  Or did I misread it?
or misunderstand sysfs binary data?

---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to