From: Michael Hanselmann <linux-kernel@hansmi.ch>
To: linux-ide@vger.kernel.org
Cc: B.Zolnierkiewicz@elka.pw.edu.pl, axboe@suse.de,
jgarzik@pobox.com, linux-kernel@killerfox.forkbomb.ch
Subject: Parking hard disk head from drivers
Date: Thu, 22 Jun 2006 21:59:05 +0200 [thread overview]
Message-ID: <20060622195904.GA30646@hansmi.ch> (raw)
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
next reply other threads:[~2006-06-22 19:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-22 19:59 Michael Hanselmann [this message]
2006-06-22 20:05 ` Parking hard disk head from drivers Jeff Garzik
2006-07-01 10:01 ` Michael Hanselmann
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=20060622195904.GA30646@hansmi.ch \
--to=linux-kernel@hansmi.ch \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=axboe@suse.de \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@killerfox.forkbomb.ch \
/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).