From owner-freebsd-current Sun Oct 1 3:35: 7 2000 Delivered-To: freebsd-current@freebsd.org Received: from mailout00.sul.t-online.com (mailout00.sul.t-online.com [194.25.134.16]) by hub.freebsd.org (Postfix) with ESMTP id C743A37B66C; Sun, 1 Oct 2000 03:34:57 -0700 (PDT) Received: from fmrl02.sul.t-online.de by mailout00.sul.t-online.com with smtp id 13fgQM-0003zP-00; Sun, 01 Oct 2000 12:32:50 +0200 Received: from neutron.cichlids.com (520050424122-0001@[62.225.195.108]) by fmrl02.sul.t-online.com with esmtp id 13fgQE-069wvoC; Sun, 1 Oct 2000 12:32:42 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id BF786AB91; Sun, 1 Oct 2000 12:33:20 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 20FD414B09; Sun, 1 Oct 2000 12:32:17 +0200 (CEST) Date: Sun, 1 Oct 2000 12:32:17 +0200 From: Alexander Langer To: Poul-Henning Kamp Cc: Jeremy Lea , Mike Meyer , current@FreeBSD.ORG Subject: Re: setting device permissions for DEVFS Message-ID: <20001001123217.A2644@cichlids.cichlids.com> Mail-Followup-To: Alexander Langer , Poul-Henning Kamp , Jeremy Lea , Mike Meyer , current@FreeBSD.ORG References: <20000930120607.C349@shale.csir.co.za> <11056.970344237@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <11056.970344237@critter>; from phk@critter.freebsd.dk on Sat, Sep 30, 2000 at 10:03:57PM +0200 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. X-Sender: 520050424122-0001@t-dialin.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Poul-Henning Kamp (phk@critter.freebsd.dk): > You guys are overlooking something about DEVFS: devices may appear > post-boot. Ah, yes. BTW: Devices don't disappear if you unload devices. This happens for example with bktr.ko. When I then reload bktr.ko, I get the following: WARNING: Driver mistake: repeat make_dev("bktr0") WARNING: Driver mistake: repeat make_dev("tuner0") WARNING: Driver mistake: repeat make_dev("vbi0") > We need a generic "devd" which finds out that devices have appeared, > set their perms (if needed/wanted) and executes any commands needed > (getty, mount, etc etc) by the device. Hmm. A technical question: How would the devd be notifed about an event in the devfs? Does it open a (new) device as for example the usbd does, or how would you solve that? Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message