Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 5 Feb 2002 02:44:03 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 5 Feb 2002 02:43:50 -0500 Received: from ns.virtualhost.dk ([195.184.98.160]:45581 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id ; Tue, 5 Feb 2002 02:43:35 -0500 Date: Tue, 5 Feb 2002 08:43:15 +0100 From: Jens Axboe To: hugang Cc: andersen@codepoet.org, calin@ajvar.org, linux-kernel@vger.kernel.org Subject: Re: Asynchronous CDROM Events in Userland Message-ID: <20020205084315.C2087@suse.de> In-Reply-To: <20020204070414.GA19268@codepoet.org> <20020204085712.O29553@suse.de> <20020204220503.6799df5b.gang_hu@soul.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020204220503.6799df5b.gang_hu@soul.com.cn> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 04 2002, hugang wrote: > Now it can work! ? The first 4 bytes is the event header, then followed by the media event descriptor. The first byte of that is the media event (well bit 0-3 anyways). You are instead returning the media status byte. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/