On Tue, Apr 17, 2007 at 06:18:42PM +0200, Francis Moreau (francis.moro@xxxxxxxxx) wrote: > >If there are no another users, your code already has exclusive access. > > sorry I don't understand that. Since there are no users except your module, you do have exclusive access already, i.e. you can stop key reloading and get your gain, but there is no possibility for crypto module to know that in advance (without hack like checking reference counter or storing private context pointer in some internals and check it for each new call for encrypt/decrypt). > >One can not know if there will be any additional users at all (consider > >the case when new encrypted block device or ipsec negotiation started > >some time after module was loaded). > > > > well I should say administrator should know. Yes, admin is a god. I would even say the god. So it can (if she/he wants to) setup any module with any name so that other users would never know it. > -- > Francis -- Evgeniy Polyakov - To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html