LT4000 PCMCIA device driver CardServices undefined problem
Dominik Brodowski
linux at dominikbrodowski.net
Sun Jul 24 04:39:07 EDT 2005
Hi,
On Sun, Jul 24, 2005 at 11:38:23AM +0800, mail mail wrote:
> I don't know whether I should use kref in pcmcia driver. When I read
> LDD3, Chapter 13 USB drivers, I learn that in kernel 2.6 kref is used
> to increase or decrease the reference counter of USB structure. Also
> in the original source code of LT4000 there is MOD_DEC_USE_COUNT and
> MOD_INC_USE_COUNT. So I want to use kref to implement these two
> macros. Am I right?
Most probably not. As long as you properly set up the ".owner" field in the
appropriate structs (e.g. struct pcmcia_driver) the module count is handled
correctly. I'd be surprised if USB didn't do this in a similar way as well.
Thanks,
Dominik
More information about the linux-pcmcia
mailing list