Re: Kernel thoughts of a Linux user

From: Måns Rullgård
Date: Mon Nov 22 2004 - 22:55:56 EST


"Gerold J. Wucherpfennig" <gjwucherpfennig@xxxxxxx> 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@xxxxxxxxxxxxx

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