Re: /proc/pci design idea

Martin Mares (mj@atrey.karlin.mff.cuni.cz)
Tue, 16 Sep 1997 16:42:36 +0200


Hi,

> > > Well, doing this via /proc is much slower. And how do you want to separate
> > > byte, word and longword accesses?
> > There are things /proc was not meant to do; I/O is one of them -- I/O
> > is much better handled by traditional /dev device nodes.
> If you want a device, I have submitted the code to do that a few
> months ago. Yes you can write. Dejanews?

But a device doesn't seem to solve the byte/word/longword problems as well.
In fact, you can restrict the device to allow read() with length of 1, 2 or 4
only, but then it won't be usable as a general device (i.e., cat /dev/pci
won't work).

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@gts.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"Entropy isn't what it used to be."