From owner-freebsd-hackers Wed Oct 18 20:21:38 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA10547 for hackers-outgoing; Wed, 18 Oct 1995 20:21:38 -0700 Received: from ns.easy.re.kr ([203.241.171.1]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id UAA10513 for ; Wed, 18 Oct 1995 20:21:26 -0700 Received: (from moonhunt@localhost) by ns.easy.re.kr (8.6.12H1/8.6.9) id MAA01433; Thu, 19 Oct 1995 12:20:14 +0900 From: HyunSeog Ryu Message-Id: <199510190320.MAA01433@ns.easy.re.kr> Subject: Re: device number for watchdog board driver To: hasty@rah.star-gate.com (Amancio Hasty Jr.) Date: Thu, 19 Oct 1995 12:20:14 +1553003 (KST) Cc: hackers@freebsd.org In-Reply-To: <199510190245.TAA10415@rah.star-gate.com> from "Amancio Hasty Jr." at Oct 18, 95 07:45:02 pm X-Mailer: ELM [version 2.4 PL21-h4] Content-Type: text Content-Length: 1328 Sender: owner-hackers@freebsd.org Precedence: bulk > > > > Dumb question: is there a command which I can use to display all the majo > r > > > and minor devices and hopefully the name of the device > > > driver that the system knows about? > > You can refer /sys/i386/conf/devices.i386 for major number... > > Yes, I know about that lets assume that I visit a FreeBSD box and > that /sys is not there. Hmmm... Here is that content... # This file tells what major numbers the various possible swap devices have. # # $Id: devices.i386,v 1.8.4.1 1995/09/14 23:47:09 jkh Exp $ # wd 0 dk 1 fd 2 wt 3 sd 4 st 5 cd 6 mcd 7 vn 15 scd 16 pcd 17 wcd 19 od 20 > > > > But minor number ??? ;> > > And you can refer lsdev command also... > > Nice listing but there is no association between the nice output of > lsdev and /dev: And you can refer /dev/MAKEDEV shell script also... ;> From Hyunseog Ryu =============================================================================== Name : Hyunseog Ryu moonhunt@easy.re.kr Tel : +82-2-884-0174 http://www.easy.re.kr/~moonhunt Fax : +82-2-884-0175 :-) EASY research institute Tomorrow is another day... ;> 4th floor, 304-25, shinrim 10-dong For better world, cheers!!! Kwanak-gu, Seoul, 151-020, Korea :-D ===============================================================================