From owner-freebsd-current@FreeBSD.ORG Sun Jul 17 00:40:09 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6DB316A41C; Sun, 17 Jul 2005 00:40:09 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.village.org (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B4F043D46; Sun, 17 Jul 2005 00:40:09 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.3) with ESMTP id j6H0c8TV023070; Sat, 16 Jul 2005 18:38:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 16 Jul 2005 18:38:51 -0600 (MDT) Message-Id: <20050716.183851.56563544.imp@bsdimp.com> To: cperciva@freebsd.org From: "M. Warner Losh" In-Reply-To: <42D9A190.5060401@freebsd.org> References: <200507170157.04718.imachine@toya.net.pl> <42D9A190.5060401@freebsd.org> X-Mailer: Mew version 3.3 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-current@freebsd.org, imachine@toya.net.pl Subject: Re: Requests for information/possible donation endpoint. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2005 00:40:09 -0000 In message: <42D9A190.5060401@freebsd.org> Colin Percival writes: : Mateusz Jedrasik wrote: : > Also, I dont want to sound "linuxy" here, but it could be nice with a way that : > ata bus drivers could inform userland programs somehow when the tray of a : > cd/dvd has closed - so it would be possible to automount stuff like cd's upon : > closure of tray, and perhaphs upon the pressing of the eject button, : > automatic unmounts if the medium is not currently used by any process. : : There is already a mechanism available for doing this: devd. I don't know if : the ata drivers send the necessary messages, and I'm pretty sure that there : isn't anything in userland which listens for those messages; but all of the : infrastructure is there. Except that there's no way to know when the tray is closed, except polling... Warner