LinuxQuestions.org
Help answer threads with 0 replies.
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 07-01-2011, 03:14 AM   #1
mailtosouvik
LQ Newbie
 
Registered: Jan 2006
Posts: 6

Rep: Reputation: 0
how to detect whether the mmc card has been removed or the driver rmmoded


I would like to know if my device has been removed from slot or the user has been rmmoded the driver from my driver's 'remove' callback. For your information, this is a mmc driver. Please let me know how to detect it. Any kind of code/link will be very much helpful,

Thanks in advance,

Souvik
 
Old 07-03-2011, 03:46 PM   #2
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
I would simply use the "lsmod" command to know which drivers are still loaded .

Drivers may have a delay_use option though .

However , if the driver does not allow the registration of a device , it would not show in /sys/block or /sys/class/block .

The only solution would be to compile the driver inside the kernel and disable the restart of the computer with unwanted parameters to the driver .
 
  


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
Ricoh Sd/mmc Card Reader Won't Read Mmc Cards it-s Linux - Hardware 4 07-02-2011 05:49 AM
What is the relationship between the linux mmc media driver and mmc host driver? archieval Linux - General 0 07-13-2009 12:36 AM
Embedded MMC/SD card driver problems!!base on linux2.6.14.1 SharkCN Linux - Embedded & Single-board computer 2 08-05-2008 11:31 AM
Embedded MMC/SD card driver problems!!base on linux2.6.14.1 SharkCN Linux - Software 1 08-04-2008 04:05 AM
Accessing MMC card in Laptop built-in MMC Card Slot with knoppix bröggle Linux - Laptop and Netbook 0 08-18-2004 08:44 AM

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

All times are GMT -5. The time now is 09:23 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