Re: ATAPI CD Insertion

2007-04-11 Thread Dag-Erling Smørgrav
"Ali Mashtizadeh" <[EMAIL PROTECTED]> writes: > Is there a way to detect a cdrom insert/eject (in the kernel or usermode)? > Or is there a way to check a media change? No, you have to poll. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-hac

ATAPI CD Insertion

2007-04-11 Thread Ali Mashtizadeh
Hi Everyone, Is there a way to detect a cdrom insert/eject (in the kernel or usermode)? Or is there a way to check a media change? I know atadev->flags gets set with ATA_D_MEDIA_CHANGED under certain conditions but I want that to happen when I eject / insert the media? (maybe it already happens a