From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 24 08:05:12 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 A44C01065678; Thu, 24 Apr 2008 08:05:12 +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 7FA388FC1B; Thu, 24 Apr 2008 08:05:12 +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 1JowS7-0000dw-BR; Thu, 24 Apr 2008 11:05:11 +0300 Message-ID: <48103F36.6060707@icyb.net.ua> Date: Thu, 24 Apr 2008 11:05:10 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.12 (X11/20080320) MIME-Version: 1.0 To: John Baldwin References: <480E4269.2090604@icyb.net.ua> <200804230955.10390.jhb@freebsd.org> <480F8D23.9040005@icyb.net.ua> <200804231549.54722.jhb@freebsd.org> <480FBAB9.1000904@icyb.net.ua> In-Reply-To: <480FBAB9.1000904@icyb.net.ua> 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: Thu, 24 Apr 2008 08:05:12 -0000 on 24/04/2008 01:39 Andriy Gapon said the following: > on 23/04/2008 22:49 John Baldwin said the following: >> Events have a subsystem associated with them, so devfs events would use their >> own subsystem type to avoid that sort of confusion. > > Thank you for straightening me - for some reason I was thinking about > "+"/"-" (attach/detach) events, but I see that "!" (notification) would > be much more appropriate. As you said, this can be completely modeled > after IF notifications. Do you think it would be better to post notification from make_dev*() in kern_conf.c or from devfs_create()? I mean will such notification be useful if there is no devfs to access the device from userland? -- Andriy Gapon