LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-02-2006, 01:20 AM   #1
poojapatel
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Need Help in Loading driver


Hello friends,

i had newly joined the group and its very useful.

i am new to linux programming and i want to load the device drivers programatically. Is there any function to load the driver.

I also want to check whether the driver for particular device is loaded or not and in some case i need to take the handle of the loaded drivers and i have to unload it through program.

can anyone help me in this field. I am using the linux(Fedora 4.0) OS.

Thanks in advance.........
 
Old 08-02-2006, 01:31 AM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Code:
# man modprobe
NAME
       modprobe - program to add and remove modules from the Linux Kernel

# man lsmod
NAME
       lsmod -- program to show the status of modules in the Linux Kernel
These two might be all you need. The ability to unload modules is fairly new in the kernel (I think), so may not be enabled by default in the kernel configuration. If not, you'll need to build your own kernel. There may be information in:
Code:
# zcat /proc/config.gz
 
Old 08-02-2006, 01:32 AM   #3
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
And, the drivers in question might be built into the kernel (not as modules), in which case you'd need to build your own kernel, specifying them as modules.
 
  


Reply



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
Loading Sticks on Loading Sound Driver nis_hurock Linux - General 8 06-03-2006 05:57 PM
driver not loading...i think ARCHIGAMER Fedora 0 04-14-2005 03:46 PM
About loading driver. subaruwrx Linux - Newbie 5 12-03-2004 11:44 PM
Help loading NIC driver blitzen Linux - Hardware 5 08-15-2004 05:33 PM
loading a driver from a floppy jack Linux - General 1 10-24-2000 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration