Can not remove a module which has no cleanup_module()

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

 



I have created a small linux kernel module in Ubuntu 6.06 which has
'init_module()' but no 'cleanup_module()'.


/* Begin start.c */
#include <linux/kernel.h>
#include <linux/module.h>

int init_module(void)
{
       printk(KERN_INFO "starting module ...\n");
       return 0;
}
/* End start.c */

I loaded this module using the command 'sudo insmod start.ko'. But
when I try to remove 'start' from the kernel, I get this error
message.

$ sudo insmod start.ko
$ sudo rmmod start.ko
ERROR: Removing 'start': Device or resource busy

What's the concept behind this? Please explain.

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