Child suspend/resume

Justin Hibbits chmeeedalf at
Mon Aug 11 05:44:14 UTC 2014

Hi all,

The attached patch is completely untested, due to lack of existing
suspendable hardware (no x86 machines).  It does compile cleanly against
head, though. I don't think it should change any behavior, I tried to
keep the essence of the code path the same.

It was suggested that I break up my multipass suspend/resume code into
incremental parts, so this is part one.  It adds a
BUS_SUSPEND_CHILD/BUS_RESUME_CHILD, as well as helper functions,
bus_generic_suspend_child()/bus_generic_resume_child(), and modifies
the PCI driver to use this new facility.

I'd like some feedback, and testing of this, to make sure I didn't
break anything.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: suspend_child.diff
Type: text/x-patch
Size: 8350 bytes
Desc: not available
URL: <>

More information about the freebsd-current mailing list