On Tue, Oct 24, 2006 at 09:35:49PM -0700, Randy Dunlap wrote:
> > 
> > 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.

Depends.  Normally ASCII is greatly preferred, but passing in/out big
data structures can be a huge pain, thunking to/from ASCII.


> 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?

Yeah, that one shouldn't be using _bin_

        Jeff



-
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