Re: insmod error

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

 



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

Check your return values.  Specifically what does init_module() return?


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