From owner-freebsd-questions@FreeBSD.ORG Mon Apr 7 22:33:06 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1331837B404 for ; Mon, 7 Apr 2003 22:33:06 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B3443F93 for ; Mon, 7 Apr 2003 22:33:04 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 0D85551A68; Tue, 8 Apr 2003 15:03:02 +0930 (CST) Date: Tue, 8 Apr 2003 15:03:02 +0930 From: Greg 'groggy' Lehey To: David Banning Message-ID: <20030408053301.GK61300@wantadilla.lemis.com> References: <002101c2fd90$5e190090$6500a8c0@53ht32e66xyodz> <20030408011236.A21900@skytrackercanada.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9kwpIYUMbI/2cCx" Content-Disposition: inline In-Reply-To: <20030408011236.A21900@skytrackercanada.com> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: "A.Z." cc: freebsd-questions@freebsd.org Subject: Re: Making devices X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2003 05:33:06 -0000 --M9kwpIYUMbI/2cCx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tuesday, 8 April 2003 at 1:12:36 -0400, David Banning wrote: > On Mon, Apr 07, 2003 at 10:33:20PM -0700, A.Z. wrote: >> Quick question... >> >> How to create new devices under FreeBSD 5.0 ? >> In particular case I need to create bunch of bpf devices. They should appear automatically. You should have one if you have bpf configured or the kld loaded. When you open them, they clone. For example, $ ls -l /dev ... crw-rw-rw- 1 root wheel 30, 0x00030004 Apr 7 14:52 audio0.3 crw------- 1 root wheel 23, 0 Apr 7 14:52 bpf0 crw-rw-rw- 1 root wheel 21, 0 Apr 7 14:52 bpsm0 $ tcpdump tcpdump: listening on wi0 15:00:16.755852 sydney.lemis.com.49156 > wantadilla.lemis.com.x11: P 1376454855:1376454919(64) ack 3154843215 win 33304 (DF) 15:00:16.756280 sydney.lemis.com.49156 > wantadilla.lemis.com.x11: P 64:312(248) ack 1 win 33304 (DF) ^C $ ls -l /dev ... crw-rw-rw- 1 root wheel 30, 0x00030004 Apr 7 14:52 audio0.3 crw------- 1 root wheel 23, 0 Apr 7 14:52 bpf0 crw------- 1 root wheel 23, 1 Apr 7 14:52 bpf1 crw-rw-rw- 1 root wheel 21, 0 Apr 7 14:52 bpsm0 > man MAKEDEV MAKEDEV no longer exists in FreeBSD 5.0. devfs creates the device nodes automatically. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers --M9kwpIYUMbI/2cCx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+kl8NIubykFB6QiMRAoMAAJ468cOV3vXxcAbna/5rtVrIaDZ4EACbBRw6 Lo0eYILhwfoXZj1g1b7naII= =XCtF -----END PGP SIGNATURE----- --M9kwpIYUMbI/2cCx--