[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mixed use of MOD_INC_USE_COUNT and SET_MODULE_OWNER
On Sat, 29 Jun 2002, John Tyner wrote:
> My understanding is that the new may makes the old obsolete but not wrong,
> per se. You just get the effect that you see where opens increment twice and
> closes decrement twice. I think that there are some cases that
> SET_MODULE_OWNER may not always catch for every driver, so mixing may not
> necessarily be wrong...
That was the impression I got, just wanted to see what y'all
thought. One of the more common approaches I saw is the use
of sprinkled #ifdef to allow for the < 2.4 kernels. Seems that
might be the way to go. Thanks for the input, John.
Mike
--
Michael Janicki
Key: http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0x9D6FAE1A
Fingerprint: A153 DFC7 8B49 7E97 67B2 3DCE DA3F 3CC5 9D6F AE1A
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/