Re: /proc/pci design idea

H. Peter Anvin (hpa@transmeta.com)
16 Sep 1997 07:55:39 GMT


Followup to: <19970915212422.41308@atrey.karlin.mff.cuni.cz>
By author: Martin Mares <mj@atrey.karlin.mff.cuni.cz>
In newsgroup: linux.dev.kernel
> >
> > I think these are decent ideas, but I would prefer not going around and
> > creating system calls willy-nilly. Entries in /proc use existing system
> > calls, and also take care of managing permissions, security restrictions,
> > etc. (The pciconfig_write system call on alphas can be executed by anyone,
> > for example.)
> >
> > Only problem is, it requires /proc to be configured in. Oh well, I'm not
> > the first and won't be the last.
>
> 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.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
Always looking for a few good BOsFH.  **  Linux - the OS of global cooperation
        I am Baha'i -- ask me about it or see http://www.bahai.org/