From: Jeff Garzik <jgarzik@pobox.com>
To: Michael Hanselmann <linux-kernel@hansmi.ch>
Cc: linux-ide@vger.kernel.org, B.Zolnierkiewicz@elka.pw.edu.pl,
axboe@suse.de, linux-kernel@killerfox.forkbomb.ch
Subject: Re: Parking hard disk head from drivers
Date: Thu, 22 Jun 2006 16:05:24 -0400 [thread overview]
Message-ID: <449AF804.4080205@pobox.com> (raw)
In-Reply-To: <20060622195904.GA30646@hansmi.ch>
Michael Hanselmann wrote:
> 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.
If I had to guess, I would say use a notifier...
Jeff
next prev parent reply other threads:[~2006-06-22 20:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-22 19:59 Parking hard disk head from drivers Michael Hanselmann
2006-06-22 20:05 ` Jeff Garzik [this message]
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=449AF804.4080205@pobox.com \
--to=jgarzik@pobox.com \
--cc=B.Zolnierkiewicz@elka.pw.edu.pl \
--cc=axboe@suse.de \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@hansmi.ch \
--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).