ATAPI CD Insertion

Ali Mashtizadeh mashtizadeh at gmail.com
Wed Apr 11 22:23:14 UTC 2007


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 and I'm doing
something else wrong)

Thanks,
-- 
Ali Mashtizadeh
علی مشتی زاده


More information about the freebsd-hackers mailing list