Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2003 15:03:02 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        David Banning <david@skytracker.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Making devices
Message-ID:  <20030408053301.GK61300@wantadilla.lemis.com>
In-Reply-To: <20030408011236.A21900@skytrackercanada.com>
References:  <002101c2fd90$5e190090$6500a8c0@53ht32e66xyodz> <20030408011236.A21900@skytrackercanada.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <nop,nop,timestamp 8684522 370287376> (DF)
  15:00:16.756280 sydney.lemis.com.49156 > wantadilla.lemis.com.x11: P 64:312(248) ack 1 win 33304 <nop,nop,timestamp 8684522 370287376> (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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030408053301.GK61300>