Re: tainted module and rmmod

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

 



> A little question for you: 
> I have made a mistake: I have written  a module, and forgotten to put a
> MODULE_LICENCE( "GPL" ); 

Not putting the MODULE_LICENSE macro in your lkm is
not a mistake. It merely identifies the license used.

> So, my kernel is tainted. It is clean normal.
> But now I am not able to unload this module :-(
>  * rmmod -a : same response.
>  * lsmod doesn't seem to see this module. But when I insmod it again :
>    Ressource busy, which is normal :-)

Are you sure you loaded the lkm in the first place?
Check the return value of the initialisation function.

Also, what did you do in the module that causes it to
be unable to be unloaded? 

>  * I have all ready search on linux/Documentation/*, google,
>    http://www.tux.org/lkml/.
> 
> But I have not found what I search.
> 
> If you have any idea, I am raedy to learn from you.
> Perhaps my question is very idiot, sorry if it was :-( 
> -- 
> Cordialement/Regards
> +-------------------------------------------------------+
> | Christophe Lucas -- IOMEDA SA (clucas@iomeda.fr)      |
> | Developpeur/Administrateur GNU/Linux                  |
> +-------------------------------------------------------+
> | http://titux.tuxfamily.org -- Registered User #271267 |
> +-------------------------------------------------------+
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 

-- 
Eugene TEO @ Linux Users Group, Singapore <eugeneteo@lugs.org.sg>
GPG FP: D851 4574 E357 469C D308  A01E 7321 A38A 14A0 DDE5 
main(i){putchar(182623909>>(i-1)*5&31|!!(i<7)<<6)&&main(++i);}

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