lkml.org 
[lkml]   [2003]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ide cdrom sg like access / rpcmgr ?
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/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.351 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site