Re: [PATCH] 2.5.17 /dev/ports

Martin Dalecki (dalecki@evision-ventures.com)
Thu, 23 May 2002 20:05:08 +0200


Użytkownik Pete Zaitcev napisał:
>>Anybody: if you've ever used /dev/ports, holler _now_.
>>
>> Linus
>
>
> I often use it as an alternative to #include <asm/io.h>,
> which you decreed illegal. I understand <sys/io.h> is a legal
> alternative, but a bunch of platforms forget to
> include <sys/io.h>, for instance Jes cried bloody murder
> when asked to add it to ia-64. But if you decide to drop /dev/port
> I can tough it out. Solaris lives without it, and so can we.
>
> I saw this whining about outl not implemented for
> write(fd, &my_int, 4), and I think the guy had a little point.
> Though if he wanted it, he ought to submit a patch.

Hey and finally if someone want's to use /dev/port for
developement on some slow control experimental hardware for example.
Why doesn't he just delete the - signs at the front lines
of the patch deleting it plus module register/unregister trivia and
compile it as a *separate* character device module ?
That's linux - you have the source, so use it.
You wan't to cheat around the OS abstractions - do it for yourself!
There is no requirement that it has to be
permanently in the mainline kernel where it tends to
attract people who shouldn't have used it in first place
for generic stuff like kbd rate settings and clock device
manipulation.

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