Re: insmod error

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

 



On Wed, Feb 15, 2006 at 01:21:44PM -0800, Arun Srinivasan wrote:
> hi I wrote a simple kernel module which just calls an function visible in
> the kernel space i.e.,
> init_module (void)
> {
>  printk("something");
>  kernel_func()
> }
> 
> exit_module() {}
> 
> I complied the module and when I 'insmod' it, it gives the error
> "init_module: Device or resource busy".
> The printk works and the kernel func. gets called. But the module dosent get
> loaded.(checked it with 'lsmod')
> Please help.

You didn't return 0 from the init_module function.

thanks,

greg k-h

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