linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: USB card reader media detection
Date: Tue, 05 Apr 2005 17:51:58 +0000	[thread overview]
Message-ID: <20050405175158.GA18120@kroah.com> (raw)
In-Reply-To: <000701c536af$9e5e8b20$f601a8c0@SenatorPalmer>

On Fri, Apr 01, 2005 at 12:40:34PM +0100, Andrew Marshall wrote:
> Hi all,
> 
> I would very much appreciate any assistance anyone can offer on the
> following:
> 
> I am currently running version 2.4.22 of the Kernel and am writing an
> application that needs to cope with the removal of card media form a USB
> flash card reader.
> 
> Hotplug informs me when the card reader itself is added with my intention
> being to scan for partition entries at the newly created dev/scsi entry
> 
> 	e.g	/dev/scsi/host0/bus0/target0/lun0/part1
> 
> and mount any partitions detected.
> 
> This works fine -- but I also need to detect when a memory card has been
> removed.

Sorry, will not work properly, as not all devices report when a card has
been added or removed.  You need to poll the device :(

Good luck,

greg k-h


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2005-04-05 17:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-01 11:40 USB card reader media detection Andrew Marshall
2005-04-01 14:40 ` Kay Sievers
2005-04-05 17:51 ` Greg KH [this message]
2005-04-06 11:06 ` Andrew Marshall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050405175158.GA18120@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).