From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 14 21:18:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 699AB16A4DF for ; Mon, 14 Aug 2006 21:18:21 +0000 (UTC) (envelope-from admin@intron.ac) Received: from intron.ac (unknown [210.51.165.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id D586343D5C for ; Mon, 14 Aug 2006 21:18:18 +0000 (GMT) (envelope-from admin@intron.ac) Received: from localhost (localhost [127.0.0.1]) (uid 1003) by intron.ac with local; Tue, 15 Aug 2006 05:18:17 +0800 id 00102C05.44E0E899.00004676 References: <86bqqnyhlm.fsf@xps.des.no> <861wrjjfap.fsf@xps.des.no> In-Reply-To: From: "Intron" To: "Sean Bryant" Date: Tue, 15 Aug 2006 05:18:17 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Cc: freebsd-hackers@freebsd.org Subject: Re: Questions about devices and input. 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: Mon, 14 Aug 2006 21:18:21 -0000 The section 4.11.1 "Removable Media Status Notification feature set" of ATA/ATAPI-7 (http://t13.org/docs2004/d1532v1r4b-ATA-ATAPI-7.pdf) reads, d) Host system periodically checks media status using the GET MEDIA STATUS command to determine if any of the following events occurred: - no media is present in the device (NM). - media was changed since the last command (MC). - a media change request has occurred (MCR). - media is write protected (WP). ------------------------------------------------------------------------ From Beijing, China Sean Bryant wrote: > Thanks anyway :( > On 8/14/06, Dag-Erling Smo/rgrav wrote: >> "Sean Bryant" writes: >> > How about when media is loaded. I have a detection routine that'll ask >> > for media, but what about when any media is loaded? Is there some kind >> > of event or some way I can be notified. >> >> Sorry, no. >> >> DES >> -- >> Dag-Erling Smo/rgrav - des@des.no >> > > > -- > Sean Bryant