[PLUG] Detecting media in cdrom devices

Devendra Laulkar devendralaulkar at yahoo.com
Sat Apr 22 01:46:49 IST 2006



> How can I find out the presence/state of media in a
> cdrom/dvd drive ? 

Well, I found out one way. Using ioctl calls. Just
read Documentation/ioctl/cdrom.txt present in the
linux kernel source code.

(googling was giving howto's on burning cd's. finally
greped through the documentation )

-Devendra Laulkar.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the Plug-mail mailing list