From owner-freebsd-hackers Thu Oct 19 02:10:28 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id CAA15841 for hackers-outgoing; Thu, 19 Oct 1995 02:10:28 -0700 Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id CAA15836 for ; Thu, 19 Oct 1995 02:10:21 -0700 Received: from rah.star-gate.com (localhost.v-site.net [127.0.0.1]) by rah.star-gate.com (8.6.12/8.6.9) with ESMTP id CAA13072 for ; Thu, 19 Oct 1995 02:09:55 -0700 Message-Id: <199510190909.CAA13072@rah.star-gate.com> X-Mailer: exmh version 1.6.2 7/18/95 To: freebsd-hackers@FreeBSD.ORG Subject: Re: device number for watchdog board driver In-reply-to: Your message of "Thu, 19 Oct 1995 08:32:51 BST." <199510190732.IAA02775@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 19 Oct 1995 02:09:54 -0700 From: "Amancio Hasty Jr." Sender: owner-hackers@FreeBSD.ORG Precedence: bulk -------- Curious what are you running over there... dev_mkdb - create /dev database SYNOPSIS dev_mkdb DESCRIPTION The dev_mkdb command creates a db(3) hash access method database in ``/var/run/dev.db'' which contains the names of all of the character and block special files in the ``/dev'' directory, using the file type and the st_rdev field as the key. Keys are a structure containing a mode_t followed by a dev_t, with any padding zero'd out. The former is the type of the file (st_mode & S_IFMT), the latter is the st_rdev field. FILES /dev Device directory. /var/run/dev.db Database file. SEE ALSO ps(1), stat(2), db(3), devname(3), kvm_nlist(3), ttyname(3), kvm_mkdb(8) rah# Regards, Amancio >>> J Wunsch said: > As Amancio Hasty Jr. wrote: > > > > Nope, > > > > I was hoping for something along the lines of sysctl which will tell > > me which devices the system things that it has in the *running kernel* > > > > sysctl -listdevices ?? or a functionally equivalent command. > > Interesting. In order to answer your question, i typed "dev", and > then hit TAB (in tcsh). "dev_mkdb devmenue" was the answer. Ok, "m", > another TAB -- mucho surprised! :-) > > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIP E > Never trust an operating system you don't have sources for. ;-) >