In message: <42D9A190.5060401_at_freebsd.org> Colin Percival <cperciva_at_freebsd.org> writes: : Mateusz Jedrasik wrote: : > Also, I dont want to sound "linuxy" here, but it could be nice with a way that : > ata bus drivers could inform userland programs somehow when the tray of a : > cd/dvd has closed - so it would be possible to automount stuff like cd's upon : > closure of tray, and perhaphs upon the pressing of the eject button, : > automatic unmounts if the medium is not currently used by any process. : : There is already a mechanism available for doing this: devd. I don't know if : the ata drivers send the necessary messages, and I'm pretty sure that there : isn't anything in userland which listens for those messages; but all of the : infrastructure is there. Except that there's no way to know when the tray is closed, except polling... WarnerReceived on Sat Jul 16 2005 - 22:40:09 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:39 UTC