public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Andreas Jellinghaus <aj@dungeon.inka.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ide cdrom sg like access / rpcmgr ?
Date: Wed, 12 Nov 2003 12:36:04 +0100	[thread overview]
Message-ID: <20031112113604.GG21141@suse.de> (raw)
In-Reply-To: <1068494681.808.11.camel@simulacron>

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


  reply	other threads:[~2003-11-12 11:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10 20:04 ide cdrom sg like access / rpcmgr ? Andreas Jellinghaus
2003-11-12 11:36 ` Jens Axboe [this message]
2003-11-12 12:39   ` Andreas Jellinghaus
2003-11-12 14:31     ` Jens Axboe
2003-11-12 16:33       ` Linus Torvalds
2003-11-12 17:32         ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031112113604.GG21141@suse.de \
    --to=axboe@suse.de \
    --cc=aj@dungeon.inka.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox