Re: Kernel thoughts of a Linux user

Måns Rullgård
2004-11-22T18:56:00Z

"Gerold J. Wucherpfennig" <gjwucherpfennig@gmx.net> writes:

> I'm a stupid idiot, but I'm sure that the sysfs and hal thing still has to
> mature for a few years. Just imagine such things like listing all
> available modem devices. Listing /sys/class/tty/*/dev without
> the virtual consoles just isn't enough.

How would you know what's connected to a serial port? There's
absolutely no way to tell whether it's a modem or something else, at
least no way that should be attempted inside the kernel. Manually
checking if there's a modem can be as simple as sending some harmless
AT commands, and check for reasonable replies. The problem is that
nobody knows what these commands might do to some other device.

--
Måns Rullgård
mru@inprovide.com