Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262033AbTKLLgG (ORCPT ); Wed, 12 Nov 2003 06:36:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262034AbTKLLgG (ORCPT ); Wed, 12 Nov 2003 06:36:06 -0500 Received: from ns.virtualhost.dk ([195.184.98.160]:63451 "EHLO virtualhost.dk") by vger.kernel.org with ESMTP id S262033AbTKLLgE (ORCPT ); Wed, 12 Nov 2003 06:36:04 -0500 Date: Wed, 12 Nov 2003 12:36:04 +0100 From: Jens Axboe To: Andreas Jellinghaus Cc: linux-kernel@vger.kernel.org Subject: Re: ide cdrom sg like access / rpcmgr ? Message-ID: <20031112113604.GG21141@suse.de> References: <1068494681.808.11.camel@simulacron> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1068494681.808.11.camel@simulacron> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 27 On Mon, Nov 10 2003, Andreas Jellinghaus wrote: > Hi, > > Is there some documentation on how to access an ide cdrom in 2.6.0* > for converting an app that used ide-scsi and sg devices? > (I'd like to use rpcmgr11.c to unlock my dvd drive. maybe someone > already ported it to kernel 2.6.*?) > > the original source uses: > fd = open(..., O_RDWR); > write, read and ioctl(fd, SG_NEXT_CMD_LEN, &cmdlen); > (but the ioctl only on lg drives, mine is a hitachi, > so that shouldn't be necessary). > > or will I need ide-scsi to do these things? Post the code and I'll show you how to do it. Generally, you should just use SG_IO or CDROM_SEND_PACKET for this. -- Jens Axboe - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/