From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 23 07:29:10 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 713361065670 for ; Wed, 23 Apr 2008 07:29:10 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from hosted.kievnet.com (hosted.kievnet.com [193.138.144.10]) by mx1.freebsd.org (Postfix) with ESMTP id 440CB8FC36 for ; Wed, 23 Apr 2008 07:29:10 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost ([127.0.0.1] helo=edge.pp.kiev.ua) by hosted.kievnet.com with esmtpa (Exim 4.62) (envelope-from ) id 1JoZPd-000Gx4-QG; Wed, 23 Apr 2008 10:29:05 +0300 Message-ID: <480EE53C.40800@icyb.net.ua> Date: Wed, 23 Apr 2008 10:29:00 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.12 (X11/20080320) MIME-Version: 1.0 To: Jille References: <480E4269.2090604@icyb.net.ua> <480E533C.60301@quis.cx> In-Reply-To: <480E533C.60301@quis.cx> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: devctl (alike?) for devfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2008 07:29:10 -0000 on 23/04/2008 00:06 Jille said the following: > Andriy Gapon wrote: >> Maybe this is a crazy idea or maybe we already have something like this. >> Is it possible to get notifications about changes in devfs - appearance >> and disappearance of devices (in devfs sense of the word)? >> devctl currently notifies about real (hardware) devices handled by >> device drivers and some notifications about hardware/driver events. >> But what if I want to automatically run some action if >> /dev/ufs/magic-label appears? >> Or if I want to monitor appearance and disappearance of ad* and da* >> devices (without having to monitor low level drivers like umass)? >> > > I don't know whether it is what you are looking for, but take a look at > devd(8). devd reads devctl -- Andriy Gapon