Subject: Re: CVS commit: src/sys/dev/ata
To: Martin Husemann <martin@duskware.de>
From: Cherry G. Mathew <cherry.g.mathew@gmail.com>
List: tech-kern
Date: 04/05/2006 18:35:07
On 4/5/06, Martin Husemann <martin@duskware.de> wrote:
> On Wed, Apr 05, 2006 at 09:10:53AM +0530, Cherry G. Mathew wrote:
> > Since it looks like this is a macppc specific thing, maybe a better
> > way to do this would be to spin-down the disk in:
> > machdep.c:cpu_reboot()
>
> I think Manuel's idea sounds better: pass "int howto, char *bootstr" to
> doshutdownhooks and all hooks it calls (why is bootstr not a const, btw?)
>

Wouldn't that be a little too specific ? What if we could extend this
to all hooks and pass a pointer to a payload that has hook specific
meaning ? For example: for shutdownhooks that would be struct { int,
const char *}, for powerhooks it could be a way to pass the type of
powerstate ( sleep/standby or whatever ) etc.


--
~Cherry