On Wed, 31 Jul 2019 at 07:33, David Gibson <da...@gibson.dropbear.id.au> wrote: > > On Mon, Jul 29, 2019 at 04:56:30PM +0200, Damien Hedde wrote: > > +The function *resettable_reset* is used to trigger a reset on a given > > +object. > > +void resettable_reset(Object *obj, bool cold) > > + > > +The parameter *obj* must implement the Resettable interface. > > And what happens if it doesn't? This function has no way to report an > error.
Trying to reset an object that isn't actually resettable would be a programming error -- I think asserting is a reasonable response to that. thanks -- PMM