Messages in this thread | | | From | "Adam J. Richter" <> | Date | Mon, 30 Mar 1998 21:39:25 -0800 | Subject | Detecting media insertion (answer for CDROM's) |
| |
It turns out that, at least for CDROM's, there is a CDROMDRIVESTATUS ioctl defined in <linux/cdrom.h> that is supposed to be able to tell if there the tray has been inserted into the CDROM and, if so, whether or not there is media in the tray. It seems to work partially with my IDE CDROM drive and Linux 2.1.91. I am in the process of tracking down some quirks in its behavior to determine if they are a limitiation of my drive or software bug.
Anyhow, thanks to everyone who responded.
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 205 adam@yggdrasil.com \ / San Jose, California 95129-1034 +1 408 261-6630 | g g d r a s i l United States of America fax +1 408 261-6631 "Free Software For The Rest Of Us."
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |