From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 26 11:11:47 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 E3F21106564A for ; Sat, 26 Apr 2008 11:11:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id AA1188FC1C for ; Sat, 26 Apr 2008 11:11:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m3QB8jpB051158; Sat, 26 Apr 2008 05:08:46 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 26 Apr 2008 05:09:51 -0600 (MDT) Message-Id: <20080426.050951.-1676911029.imp@bsdimp.com> To: avg@icyb.net.ua From: "M. Warner Losh" In-Reply-To: <480EE53C.40800@icyb.net.ua> References: <480E4269.2090604@icyb.net.ua> <480E533C.60301@quis.cx> <480EE53C.40800@icyb.net.ua> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, jille@quis.cx 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: Sat, 26 Apr 2008 11:11:48 -0000 In message: <480EE53C.40800@icyb.net.ua> Andriy Gapon writes: : 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 The device events from devctl(4) don't necessarily correspond to /dev entries that devfs deals with. Warner