Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-16-2007, 09:04 AM   #1
LQ Newbie
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
Help using generic packet commands from cdrom.h

Does anyone know how to use the generic packet commands defined in cdrom.h? I am using some of the simple commands like CDROM_DRIVE_STATUS through ioctl, but I have been unable to find a concise example of how to use the generic packet commands, e.g. GPCMD_REQUEST_SENSE.

It would be great if somebody could provide example C code of the command format, how it is sent (using ioctl?) and how to interpret the response. I'm basically trying to do this, to determine when a DVD drive fails.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to use packet-writing on CDROM with udftools GrapefruiTgirl Linux - Hardware 5 03-28-2007 08:13 AM
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 05:09 AM
dump packet data to file, but no packet header Nathanael Linux - Networking 3 02-08-2006 10:27 AM
generic packet error with Kopete Jon Hew Linux - Software 2 05-20-2004 09:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration