Re: clarifying the use of try_module_get()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2004-12-17 at 12:58 +0000, John S O'Sullivan wrote:

> As I understand it try_module_get() should be used in place of the
> depreciated MOD_COUNTS so if I have a module moduleA. I use
> try_module_get(THIS_MODULE) in the open function and module_put(THIS_MODULE)
> in the release funtion.

not really; you're supposed to have a .owner set, so that the middle
layers can keep that counts for you.




--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux