Messages in this thread | | | From | Måns Rullgård <> | Subject | Re: Kernel thoughts of a Linux user | Date | Mon, 22 Nov 2004 19:52:33 +0100 |
| |
"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
- 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/
| |