From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 3 12:42:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A607516A407 for ; Tue, 3 Oct 2006 12:42:21 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1E2043D49 for ; Tue, 3 Oct 2006 12:42:20 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so2054216wxd for ; Tue, 03 Oct 2006 05:42:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XQLbk41boC6s5wPcRgVv5p5QlH381POU2cPIGGXa5VAEvGZ2ia8Gg4Ood1N8sbU5EyrlHuZYtgzmKPWXDB+s/ra+XshVQzxjCkuxianoTbA6Kof643Q8s3gRAO0qai4hf55+6kPPJZ6FOaha8kxrVdQjBSOJ11vFwAwdMvaNzuc= Received: by 10.70.90.14 with SMTP id n14mr8842961wxb; Tue, 03 Oct 2006 05:42:20 -0700 (PDT) Received: by 10.70.37.19 with HTTP; Tue, 3 Oct 2006 05:42:20 -0700 (PDT) Message-ID: <3bbf2fe10610030542r2880f7fcma98dfbb68669cb4e@mail.gmail.com> Date: Tue, 3 Oct 2006 14:42:20 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Ekkehard Morgenstern" In-Reply-To: <200610031240.02386.ekkehard.morgenstern@onlinehome.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200610021121.57756.ekkehard.morgenstern@onlinehome.de> <200610021254.37808.ekkehard.morgenstern@onlinehome.de> <45213239.5050004@cyberwang.net> <200610031240.02386.ekkehard.morgenstern@onlinehome.de> X-Google-Sender-Auth: 39f1a62daff294c8 Cc: freebsd-hackers@freebsd.org Subject: Re: Systems programming on FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 12:42:21 -0000 2006/10/3, Ekkehard Morgenstern : > 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