Messages in this thread | | | Subject | Re: is there a disc in the drive? | From | James Stevenson <> | Date | 24 Dec 2002 01:55:25 +0000 |
| |
Hi
open the cd drive in non blocking mode then do some ioctls to get the info you require.
or cdrecord i think has an option to dump the info.
On Mon, 2002-12-23 at 21:02, Adam Hunt wrote: > Is there a simple way of determining if there is a disc in a CD/DVD drive? > Something in /proc would be nice. Is there any other sort of information > availble such as what type of disc is in the drive? >
- 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/
| |