Re: replacement for MOD_{INC|DEC]_USE in 2.6

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

 



On Fri, Jul 23, 2004 at 12:45:30PM +0200, chgans wrote:
> Hi all,
> 
> I would know which is the replacement for the MOD_{INC|DEC]_USE since
> they are deprecated in 2.6 series.

try_module_get()/module_put()

> I've got 2 modules, the second is using the first so i want to
> MOD_INC_USE_COUNT in the first when the second call a register function.
>
> Any point out will be apreciated.
 
More details of their usage may be gleaned from include/linux/module.h
and http://lwn.net/Articles/22197/

	Arthur

--
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