freebsd-dev/usr.sbin/lsdev/lsdev.h
Garrett Wollman 0ed1ac8d35 lsdev(8), a user-land utility to query the device configuration database
managed by kern_devconf.c.  A useful feature is that the following
script generates almost well-formed config-file lines for all ISA devices
in the system:

lsdev -t isa | awk '{ print "device $0" }'
lsdev -t disk | awk '{ print "disk $0" }'
1994-10-17 23:26:10 +00:00

17 lines
415 B
C

/*
* Declarations for lsdev(8).
*/
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/proc.h>
#include <vm/vm.h>
#include <sys/sysctl.h>
#include <sys/devconf.h>
extern const char *const devtypes[]; /* device type array */
extern void print(struct devconf *); /* machine-specific print routine */
extern int vflag;
extern int findtype(const char *); /* get device type by name */