Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Oct 2006 14:42:20 +0200
From:      "Attilio Rao" <attilio@freebsd.org>
To:        "Ekkehard Morgenstern" <ekkehard.morgenstern@onlinehome.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Systems programming on FreeBSD
Message-ID:  <3bbf2fe10610030542r2880f7fcma98dfbb68669cb4e@mail.gmail.com>
In-Reply-To: <200610031240.02386.ekkehard.morgenstern@onlinehome.de>
References:  <200610021121.57756.ekkehard.morgenstern@onlinehome.de> <200610021254.37808.ekkehard.morgenstern@onlinehome.de> <45213239.5050004@cyberwang.net> <200610031240.02386.ekkehard.morgenstern@onlinehome.de>

next in thread | previous in thread | raw e-mail | index | archive | help
2006/10/3, Ekkehard Morgenstern <ekkehard.morgenstern@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3bbf2fe10610030542r2880f7fcma98dfbb68669cb4e>