Date: Sun, 24 Sep 2000 15:11:07 +0200 (CEST) From: Soren Schmidt <sos@freebsd.dk> To: t.vanklaveren@student.utwente.nl (Theo van Klaveren) Cc: hackers@FreeBSD.ORG Subject: Re: Getting data from the ATAPI-CD driver Message-ID: <200009241311.PAA06572@freebsd.dk> In-Reply-To: <39CDE90F.32F1693@student.utwente.nl> from Theo van Klaveren at "Sep 24, 2000 01:44:15 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009241311.PAA06572>