[Pcsclite-muscle] IFD polling

William Roberts bill.c.roberts
Tue Feb 24 06:49:43 PST 2015


---------- Forwarded message ----------
From: "William Roberts" <bill.c.roberts at gmail.com>
Date: Feb 23, 2015 6:51 PM
Subject: IFD polling
To: "OpenSC-devel" <opensc-devel at lists.sourceforge.net>
Cc:

> I am working on an IFD, and it looks like it just polls the presence API.
I have some logging turned on to trace the calls in my IFD, and I see:
>
> 00000022 ifd_entry.c-IFDHICCPresence()-98: Exit: 616
> 00400112 ifd_entry.c-IFDHICCPresence()-95: Enter: Lun: 0
> 00000022 ifd_entry.c-IFDHICCPresence()-98: Exit: 616
> 00400141 ifd_entry.c-IFDHICCPresence()-95: Enter: Lun: 0
> 00000022 ifd_entry.c-IFDHICCPresence()-98: Exit: 616
> 00400124 ifd_entry.c-IFDHICCPresence()-95: Enter: Lun: 0
> 00000023 ifd_entry.c-IFDHICCPresence()-98: Exit: 616
>
> This is less than ideal. Reading the docs
> here:
http://pcsclite.alioth.debian.org/api/group__IFDHandler.html#gabb9fe35a68fa080ce9397f0b830b1e7e
>
> Shows the IFDHGetCapabilities() function. It mentions things about
polling threads. I can essentally event trigger off of a card insert in my
architecture, is their a way to minimize the polling and go to an event
driven system?
>
> --
> Respectfully,
>
> William C Roberts
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20150224/7fc71668/attachment.html>



More information about the pcsclite-muscle mailing list