Subject: How to query configured devices?
To: None <netbsd-help@netbsd.org>
From: Brian Stark <bpstark@pacbell.net>
List: netbsd-help
Date: 06/18/2003 00:58:29
Hi,

I'm curious, is there a way in a C/C++ program to see which devices are
configured?

I'd like to build a list of TTY devices in a program that are configured.
It seems the only way I can do this right now is to try to open /dev/tty00,
/dev/tty01, up to /dev/tty?? looking to make sure that the open() call is
successful and doesn't cause error ENXIO ("Device not configured").

Is there a generic interface to list the configured devices?


thanks...

Brian Stark
bpstark at pacbell dot net