LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 02-28-2007, 01:08 AM   #1
sharad
Member
 
Registered: Dec 2005
Posts: 48

Rep: Reputation: 15
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.
 
Old 02-28-2007, 07:50 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
create_module?
 
Old 02-28-2007, 08:55 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 69
Quote:
Originally Posted by unSpawn
create_module?
I think create_module is deprecated in favor of init_module (see “man 2 init_module”).
 
Old 03-01-2007, 05:00 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a kernel module call the function of another kernel module sceadu Programming 3 05-02-2011 02:22 AM
Better way to load/unload a kernel module seran Linux - General 3 06-23-2006 08:19 AM
Rapid module load/unload = Kernel panic mclerand Linux - Kernel 0 05-06-2006 11:02 AM
how to unload kernel module dynamically kushneeraj Programming 1 10-26-2005 11:46 PM
Unable to unload eepro100 module in Kernel 2.6 simjii Linux - General 0 12-08-2003 11:50 PM


All times are GMT -5. The time now is 06:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration