Systems programming on FreeBSD
Attilio Rao
attilio at freebsd.org
Tue Oct 3 05:42:21 PDT 2006
2006/10/3, Ekkehard Morgenstern <ekkehard.morgenstern at onlinehome.de>:
> On Monday 02 October 2006 17:37, Sean Bryant wrote:
> > If you're trying to get to the cam interface you can do that without the
> > ioctl interface and just use the cam interface. man cam to get that.
>
> OK, I will have a look at that, thank you.
>
> > But
> > note that only works for the cam devices (cd, xpt, pass, da). Things
> > like acd and ada are not supported with the cam interface and you're
> > pretty much stuck with using the ioctl interface but the sys/cdio.h and
> > sys/cdrio.h list the ioctls for you to use.
>
> Actually, at least the 6.1 Release kernel does create xpt0/pass0 for acd0 when
> the CAM driver is present. That's how I got K3B to work! ;-)
> So, CAM might be a viable choice for me.
>
> > You can just open the cdrom device with open and start reading from it.
>
> Unfortunately, that doesn't give me the subchannel info that I'm looking for.
> I have to use some kind of ioctl() for that case, but I don't know how to do
> that yet.
Give a look at sys/sys/cdio.h for ATA CDs.
Attilio
--
Peace can only be achieved by understanding - A. Einstein
More information about the freebsd-hackers
mailing list