MOD_INC_USE_COUNT

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

 



  Hi, kernel developers.

  I has a big surprise when, adding at the beginning of init_module()
the macro MOD_INC_USE_COUNT, for have a module use counter. My program
get compile well and insmod work too.

  But the surprise was when i did rmmod, cos the output said:

FATAL: the module is in use

  I did lsmod, and i got that my module was used by [unsafe].

  Any kernel programmer with experience knows why happen this?.

  IMHO a use counter is a very few dangerous thing. So i was trying with.

  Thanks you, very much, in advance.

  Regards.

  Jose.

Debian GNU/Linux 'Sid' Kernel 2.4.19 Ext3.
ESware Linux 365 Kernel 2.5.49 ReiserFS.
Registered Linux User #213309.
Memories..... You are talking about memories.
Rick Deckard. Blade Runner.

_____________________________________________________________
Get your own free tiggerfan.com email address!!
DisneySites!! - http://www.disneysites.com/webmail/tiggerfan

_____________________________________________________________
Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag
--
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