Subject: pmf doco (was Re: CVS commit: src/sys/arch/i386/pci)
To: None <tech-kern@netbsd.org>
From: David Young <dyoung@pobox.com>
List: tech-kern
Date: 12/17/2007 14:19:55
On Mon, Dec 17, 2007 at 08:37:21PM +0100, Joerg Sonnenberger wrote:
> On Mon, Dec 17, 2007 at 09:28:06AM -0500, Jared D. McNeill wrote:
> > On Mon, 17 Dec 2007, Joerg Sonnenberger wrote:
> >> On Sun, Dec 16, 2007 at 09:14:22PM +0000, David Young wrote:
> >>> 2 Add the sc_suspended flag, and observe it in the watchdog routines.
> >>
> >> Why is the device_is_active check not enough here?
> >
> > It's not documented, so don't expect people to use it.
>
> I am innocent, that function already existed before!
Joerg,
device_is_active() never used to work the way that it works, now, and
it is definitely concerned with device PMF states, now, in ways that
I had to discover by experimenting. I think that device_is_active()
deserves to be documented in pmf(9). Ditto device_has_power().
Dave
--
David Young OJC Technologies
dyoung@ojctech.com Urbana, IL * (217) 278-3933 ext 24