> Date: Thu, 23 Jul 2009 13:53:17 +0800
> From: Eugene Grosbein <eu...@kuzbass.ru>
> Sender: owner-freebsd-sta...@freebsd.org
> 
> On Thu, Jul 23, 2009 at 10:14:18AM +0800, Sagara Wijetunga wrote:
> 
> > If you conversant in this area, could you help us to identify what is/are 
> > the exact function/s in which program/s to look into identify the media 
> > insertion activity, so that we can generate relevant devd event. 
> 
> No, I'm not. In your position I would study the device specs -
> does it generate hardware event in case of media change in first place?
> 
> If yes, I'd read sources of umass driver to see how it generates events
> for single flash device and add such event for reader's media change.
> 
> If not, there should be polling anyway.

If Linux detects media insertion instantly or Windows detects media
insertion instantly (which I can confirm), there is some signal
available, so looking at the Linux driver should provide a clue as to
what to look for and that can be added to the FreeBSD umass driver. It
would be a very desirable addition, but I am not volunteering as I
currently don't use such devices. (And, no one would like the terrible
code I would write, anyway.)
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: ober...@es.net                  Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to