LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   system call to load and unload the module in kernel (http://www.linuxquestions.org/questions/linux-kernel-70/system-call-to-load-and-unload-the-module-in-kernel-533162/)

sharad 02-28-2007 01:08 AM

system call to load and unload the module in kernel
 
Dear all,

I want to load/unload a kernel module. I know the linux commands for it, but I want to do that using system calls in my c code. I am able to unload the module by using "delete_module" but i am not able to load it.

could you please tell me how to do it.

kindly waiting for your reply.

Thanks & Regards,
Sharad.

unSpawn 02-28-2007 07:50 PM

create_module?

osor 02-28-2007 08:55 PM

Quote:

Originally Posted by unSpawn
create_module?

I think create_module is deprecated in favor of init_module (see “man 2 init_module”).

unSpawn 03-01-2007 05:00 AM

Quote:

Originally Posted by osor
I think create_module is deprecated in favor of init_module (see “man 2 init_module”).

Code:

./adore.c:int init_module(void)
./adore.h:/* assigned by init_module */

...and right you are...


All times are GMT -5. The time now is 04:49 AM.