Re: Loading or unloading the module prgramtically

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

 




> Is it posible to load or unload the kernel module programatically.
>
> I have to load or unload the module from c program.
>
> How to?
>
> Thanks
> Suneel

Hi,

this may sound strange, but if you want to load a module from within a
simple C program (that is, not another kernel module) you could use system
("insmod module_name"); it's the simplest and most convenient way to do
it; if, however, you want to do that from within a kernel module, i'm
sorry to say i haven't a clue

Razvan


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