Re: Binary sysfs blobs



On Tue, 11 Apr 2006 13:42:03 -0700, Greg KH <greg@xxxxxxxxx> wrote:

No. Binary sysfs files are for "pass-through" mode only. You are ONLY
allowed to use them if you want to read from, or write to, some bit of
hardware and not manipulate the data at all. Examples of this is the
raw PCI config space, firmware binary blobs and BIOS upgrades.

I see. Kind of the opposite of what I thought they were, but it
makes sense. Thanks.

You should NEVER pass a raw structure through sysfs by using a binary
file. If anyone sees anywhere in the current kernel that does this,
please let me know and I'll go hit them with a big stick...

I dunno how raw this is, but chp_measurement_copy_block and
chp_measurement_read (in drivers/s390/cio/chsc.c) sure look like
passing structures, in 2.6.17-rc1. However, the code does not interpret
the structures, so maybe it's raw enough.

-- Pete
-
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/



Relevant Pages

  • Re: Raw Disk still preferred for 11.5?
    ... Some operating systems and hardware run better on RAW. ... I use cooked files with hardware mirroring. ... All my dbspaces (which are not mirrored in Informix) stay up ... oversimplifying here) finds it in the operating system buffers. ...
    (comp.databases.informix)
  • Re: How to read a RAW IR signal?
    ... If you Google for RAW IR, you'll probably find some post from me. ... Trick here is to disable IrOBEX before you can open the ... Obviously in the hardware there is, ... so bytes / second rate starts dropping. ...
    (microsoft.public.pocketpc.developer)
  • Re: Search across multiple Filemaker 6 database files on Mac 10.4
    ... I am working in FileMaker 6. ... different file system folders). ... I cannot manipulate the files ... in the "raw text" of the files, but I don't know how to do this. ...
    (comp.databases.filemaker)
  • Re: Bibble / iPhoto + RAW
    ... Also iPhoto - I didn't even realise you could edit RAW with it. ... I've actually just been trying it today now the Lightroom beta has ... Like you Aperture isn't an option on my current hardware, ... window set up along with ...
    (uk.comp.sys.mac)
  • Dump raw data of NIC
    ... Does anyone know how to dump the hardware (raw) data of a NIC? ... The main goal is to study how IP/Mac spoofing can be improved/detected. ... Securing Apache Web Server with thawte Digital Certificate ...
    (Security-Basics)