1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

ips/intc: move deinit to stop instead of destructor

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-02-10 16:19:58 +01:00 committed by Niklas Eiling
parent 2c72af935a
commit c730412e98
2 changed files with 5 additions and 3 deletions

View file

@ -24,6 +24,7 @@ public:
virtual ~InterruptController();
virtual bool init() override;
virtual bool stop() override;
bool enableInterrupt(IrqMaskType mask, bool polling);
bool enableInterrupt(IrqPort irq, bool polling) {

View file

@ -19,9 +19,10 @@
using namespace villas::fpga::ip;
InterruptController::~InterruptController()
{
card->vfioDevice->pciMsiDeinit(this->efds);
InterruptController::~InterruptController() {}
bool InterruptController::stop() {
return card->vfioDevice->pciMsiDeinit(this->efds) > 0;
}
bool