From owner-freebsd-hackers Sun Sep 24 6: 6:38 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 668DA37B422 for ; Sun, 24 Sep 2000 06:06:34 -0700 (PDT) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id PAA06572; Sun, 24 Sep 2000 15:11:07 +0200 (CEST) (envelope-from sos) From: Soren Schmidt Message-Id: <200009241311.PAA06572@freebsd.dk> Subject: Re: Getting data from the ATAPI-CD driver In-Reply-To: <39CDE90F.32F1693@student.utwente.nl> from Theo van Klaveren at "Sep 24, 2000 01:44:15 pm" To: t.vanklaveren@student.utwente.nl (Theo van Klaveren) Date: Sun, 24 Sep 2000 15:11:07 +0200 (CEST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Theo van Klaveren wrote: > As detailed in my previous post to this list, the way Linux's AudioFS > does this doesn't work for FreeBSD (using IOCTL's). So, Soren Schmidt's > advice was to directly get data from the atapi_cd driver. Doing some > research, I see two ways to do this: > > 1) Using atapi_queue_cmd(), like the way atapi_cd's ioctl handler does > it but not copyout'ing the retrieved data. To do this _outside_ the > atapi_cd driver, however, I need it's atapi_softc, and I haven't figured > out how to do that yet, except that I have to use driver_get_softc(), > which needs a device_t, which I don't know how to get. I'm not sure this > is the 'right' way. > > 2) Using VOP_STRATEGY on the acd device in audiofs_strategy(), the way > the cd9660 filesystem does it. I'm not sure this will work, but it sure > looks like it. This would also reduce code complexity, but I'm not sure > it's 'right' either. > > What would be the 'right' way? 2. -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message