exporting CARD_INFO_GET to user space

Duncan Sands baldrick at free.fr
Wed Feb 23 12:26:10 EST 2005

I just had this conversation with gregkh:

(16:29:23) baldrick: gregkh: is it OK if a file in sysfs contains binary data?
(17:34:06) gregkh: baldrick: sure, if you use the sysfs binary file interface :)
(17:34:12) gregkh: baldrick: what kind of data is in the file?
(18:17:21) baldrick: gregkh: there's a bunch of data about the modem: line state, various baud rates, frequency settings etc
(18:19:37) gregkh: baldrick: no, make that text files, one per value.
(18:20:02) gregkh: baldrick: no binary files in sysfs, unless they are just "pass through" to the hardware. like firmware blobs.
(18:20:17) gregkh: baldrick: if you want to do something else, use debugfs, I don't care what you do in there :)
(18:20:59) baldrick: gregkh: thanks, that's clear
(18:21:15) baldrick: so what about the pci config files?
(18:21:51) baldrick: gregkh: eg: /sys/bus/pci/devices/0000:01:00.0/config
(18:22:10) gregkh: baldrick: that's a direct dump from the pci device itself.
(18:22:22) gregkh: baldrick: so, think of it as firmware :)
(18:22:40) gregkh: baldrick: see previous point about "pass through".

I hope this clarifies matters.

All the best,


More information about the Usbatm mailing list