You can use the sysfs for example. It's "actual" path inthe file system that represent information about the system of Linux, so any real COM port will have a directory with the device name and inside information about the port itself.
I do not know regarding COM how it will look like, but for example for ethernet it looks like this (just for the sake of understanding): /sys/class/net/ For COM I guess it will be /sys/class/tty/ (Not sure tough, I do not have a machine with COM at all to check it on). Ido http://ik.homelinux.org/ 2010/8/31 Erez D <erez0...@gmail.com> > hi > > I am looking for a simple way to know which serial ports i have. > I want to have a list of all serial ports, either onboard, via usb, via > bluetooth etc ... > I'm looking for a better way than scanning /dev/ttyS* /dev/ttyUSB* > /dev/usb/... etc ... > > > In cygwin I just look under > /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DEVICEMAP/SERIALCOMM/ > is there somthing similiar in linux (probably somewhere in /proc) ? > > thanks, > erez. > > > _______________________________________________ > Linux-il mailing list > Linux-il@cs.huji.ac.il > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il > >
_______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il