Re: cdrom for embedded systems

From: Jens Axboe (axboe@image.dk)
Date: Sun Jan 09 2000 - 14:26:45 EST


On Sun, Jan 09 2000, Netnoise wrote:
> How can I intercept when the cdrom's open button is pressed.
> My developing embedded system need to know when the user try to open the
> cdrom... how can I ?

You can't really, not now. The problem is that to make that happen,
we have to poll the drive continually for events (GET_EVENT_STATUS).
The standard does cover asynchronous notification, but I haven't
seen any drives that support it...

-- 
*  Jens Axboe <axboe@image.dk>
*  Linux CD-ROM Maintainer
*  http://www.kernel.dk

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:14 EST