Hi Peter,
On 2015-01-14 10:13, Peter Stuge wrote: > > Other than that I think this looks fine. I understand there's a > different method to enumerate devices in the system through kernel > API but perhaps scanning /dev is good enough for a start. > ok, the only other kernel API that I can think of is devinfo(3) https://www.freebsd.org/cgi/man.cgi?query=devinfo&sektion=3 devinfo(3) is built upon sysctl. But devinfo does not reveal the needed info about ttyport That info is needed to figure out the mapping between the kernel driver and the serial port device node exposed under /dev. The initial file scan of /dev for cuadX, cuauX and cuaUX device nodes is to reduce the number of sysctl calls. But I may have overlooked a kernal API ? /Uffe ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ sigrok-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sigrok-devel

