I guess the following is what you are referring for:
void clean_module(void)
{
printk(KERN_INFO "Goodbye world. \n");
}
Is there any mistake on this? Is there any other way to fix the error displayed?
Thanks.
----- Original Message ----
From: Chaitanya <[email protected]>
There must be some mistake in the "cleanup_module" function.
Please check.
In this situation - I would reboot my system and never use that module
again.
On Tue, 2009-01-20 at 22:31 -0800, Won De Erick wrote:
> Hello,
>
> I tried the kernel module programming tutorial (exactly same code) found on
> the following link:
>
> http://tldp.org/LDP/lkmpg/2.6/html/x121.html
>
> The module was successfully compiled, then used insmod to insert into the
> kernel.
> It was properly listed in /proc/modules.
>
> # cat /proc/modules | less
> hello_1 9600 0 [permanent], Live 0xffffffffa0440000 (P)
>
> But when I tried removing the module,
>
> # rmmod -f hello-1
> ERROR: Removing 'hello_1': Device or resource busy
>
> How should I fix this?
>
> Other useful info:
> # uname -a
> Linux mypc 2.6.27-7-generic #1 SMP Fri Oct 24 06:40:41 UTC 2008 x86_64
> GNU/Linux
>
> # cat /proc/version
> Linux version 2.6.27-7-generic (bui...@yellow) (gcc version 4.3.2 (Ubuntu
> 4.3.2-1ubuntu10) ) #1 SMP Fri Oct 24 06:40:41 UTC 2008
>
> Thanks!
>
>
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ