[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] RE: [PATCH 2/3] Add exit notifiers.
> -----Original Message----- > From: Maximilian Heyne <mheyne@xxxxxxxxx> > Sent: 13 March 2020 12:33 > To: xen-devel@xxxxxxxxxxxxxxxxxxxx > Cc: Ian Jackson <ian.jackson@xxxxxxxxxx>; Paul Durrant <paul@xxxxxxx> > Subject: [PATCH 2/3] Add exit notifiers. > > From: Gerd Hoffmann <kraxel@xxxxxxxxxx> > > Hook up any cleanup work which needs to be done here. Advantages over > using atexit(3): > > (1) You get passed in a pointer to the notifier. If you embed that > into your state struct you can use container_of() to get get your > state info. > (2) You can unregister, say when un-plugging a device. > > [ v2: move code out of #ifndef _WIN32 ] > > Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx> > (cherry picked from commit fd42deeb4cb42f90084046e3ebdb4383953195e3) > Signed-off-by: Maximilian Heyne <mheyne@xxxxxxxxx> Reviewed-by: Paul Durrant <paul@xxxxxxx>
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |