lkml.org 
[lkml]   [2002]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: is there a disc in the drive?
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.137 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site