Re: Suggested dual human/binary interface for proc/devfs

From: Richard Gooch (rgooch@ras.ucalgary.ca)
Date: Tue Apr 04 2000 - 15:59:57 EST


Alexander Viro writes:
> On Tue, 4 Apr 2000, Richard Gooch wrote:
> > Have a look at the MTRR driver: arch/i386/kernel/mtrr.c
> >
> > We don't need another flag to open(2). Just make read(2) provide
> > human-readable data, and ioctl(2) computer-readable data.
>
> Richard, it's an _absolute_ BS. Sorry, but ioctl() on procfs
> is ridiculous - the whole thing was created to avoid that sort of
> interfaces. Introducing new ioctls is the last resort - remember,
> this syscall was invented as an explicit barf-bag. And was abandoned
> by authors, BTW. Now, we can't afford getting rid of all ioctls, but
> we can avoid adding more, erm, matter into that barf-bag.

If not ioctl(2), then what other interface would you propose for
binary data? I don't accept the argument that everything should be in
ASCII format.

                                Regards,

                                        Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:13 EST