Subject: Re: CD drive media event
To: <>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: port-i386
Date: 08/03/2002 14:27:09
--k+w/mQv8wyuph6w0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

On Sat, Aug 03, 2002 at 02:34:37AM -0700, Girish Wadhwani wrote:
=20
> Is there any mechanism for a process to be notified
> when media is inserted into a cd drive on NetBSD?
> Ideally, I would like to have a deamon sleeping and
> when media is insert, the kernel would notify the
> process. The other option would be for the process to
> poll by trying to read form the device periodically
> but that would be inefficient.

The kernel would have to do this, too. So yes, polling every - say -
3 seconds sounds like you want to do.

Regards,
	-is

--k+w/mQv8wyuph6w0
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBPUvMADCn4om+4LhpAQFj8Qf+PkfmYY/dKk/We8EassTVgF76INeid+KH
ouHKROEJadGmbRuyVWp3CC3aQpBLJAQVLnZFpcHGbyuwl3Ifej2MBqY9RImx2Qnm
lwEiOTwCH3N0koNxUPzwZ7h5Na7EfKzBz/3ap8DTzqZ6Owxitq4ca4SND8Erg6pk
o61Oe7vlfRFMCB/Ymv4JnvgSQR31S7gCwlMdtyKp1h+e3FHeAfvql0EGNXX/45BS
gxBaH4ERmc+mVBQCNXYOi1adypXjpL38/qtDdpJ41uMe8HcOXuLgkMZ4dtHubE8y
iUNajGkHAJW5Baex9viOMh2kEVGgwz1p2cdGk2nOWA8kdqZ0E8ekvA==
=3gAr
-----END PGP SIGNATURE-----

--k+w/mQv8wyuph6w0--