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:
parent
2c72af935a
commit
c730412e98
2 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue