linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Parking hard disk head from drivers
@ 2006-06-22 19:59 Michael Hanselmann
  2006-06-22 20:05 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Hanselmann @ 2006-06-22 19:59 UTC (permalink / raw)
  To: linux-ide; +Cc: B.Zolnierkiewicz, axboe, jgarzik, linux-kernel

Hello

I'm working on a driver for the Apple Motion Sensor found in PowerBooks
from 2005 and MacBooks. The chip doing the real work gives an interrupt
when it detects a "freefall" or "shock". When that happens, Mac OS X
parks the internal hard disk's head to minimize the possible damage.

What would be the best and accepted way to implement the parking in the
Linux kernel? IMHO this has to be done in kernel space, because it has
to be instant.

My idea was to extend the genhd layer by a function to receive the
gendisk structure by the HD's name (foo("hda"), foo("sda")). This might
work, because the internal HD is always the first one. Another idea was
to do it in the ide-disk (PowerBooks, later iBooks) and libata code
(MacBooks), depending on which type is available.

Thanks,
Michael

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-01 10:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-22 19:59 Parking hard disk head from drivers Michael Hanselmann
2006-06-22 20:05 ` Jeff Garzik
2006-07-01 10:01   ` Michael Hanselmann

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).