lkml.org 
[lkml]   [2006]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCross platform method for detecting hot unplug in irq handler
Hi,

I am writing a driver for a PCMCIA device.
When the card is removed, the driver's IRQ handler is called.
The first thing the IRQ handler does is read a status register from the
card's IOPORT. On the ia32 (i386) platform, the resulting status read
will return 0xffffffff. If the driver reads this value, it assumes the
card has been removed and acts accordingly.

Is this a reliable way of detecting PCMCIA or Hotplug card removal
inside an IRQ handler?
Is it consistent cross platforms. E.g. ia64, amd64, PPC, MIPS etc.?
Does a more reliable detection method exist in the kernel?

James
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-23 15:13    [W:0.039 / U:1.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site