aponomarenko Is there a way to get complete list of supported PCI / USB device ids and classes in the kernel?
For USB devices usb(4) man page is probably the best reference available. However, I'm not aware of a database as the one you're looking for
pin for NetBSD I guess you could grep /usr/src/sys/arch/${ARCH}/conf/
In order to inspect the running kernel's config for enabled options, there's no need to fetch and extract the syssrc.tgz source set (by default not included in base) only to get the GENERIC config file, as config(1) can extract the configuration embedded in a loaded kernel ELF at any time with the -x
switch, and print it to stdout 🙂;
For a quick config lookup, I keep this in my .shrc:
chkconf() {
echo "Which option would you like to check?"
read VAR
if config -x /netbsd | grep -q $VAR; then
echo found
else
echo not found
fi
}