LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-16-2007, 10:04 AM   #1
BoldDonkey
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.
 
  


Reply


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 09:13 AM
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 01:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 06:09 AM
dump packet data to file, but no packet header Nathanael Linux - Networking 3 02-08-2006 11:27 AM
generic packet error with Kopete Jon Hew Linux - Software 2 05-20-2004 10:37 AM


All times are GMT -5. The time now is 10:32 PM.

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