On Sun, Jul 18, 2010 at 07:14:57AM -0700, Paul Goyette wrote: > Currently, pseudo-devices are silently attached to the device tree > without giving the driver any access to the associated device_t > structure. As a result, the pseudo-device driver is unable to > access much of the pmf framework. In particular, the pseudo-device > cannot register a suspend/resume/shutdown handler, nor can it > register to receive pmf event notifications. > > It seems to me that it would be reasonably useful for pseudo-devices > to be capabile of participating in pmf. One particular example I've > run into recently is the swwdog pseudo-device. Other watchdog > drivers can prevent a suspend if their timer is armed, but since > swwdog is only a pseudo-device it cannot register a pmf handler. Convert it to a defpseudodev then. -- Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost "See the look on my face from staying too long in one place [...] every time the morning breaks I know I'm closer to falling" KT Tunstall, Saving My Face, Drastic Fantastic, 2007.
Attachment:
pgpOwaER2m4UE.pgp
Description: PGP signature