From 3275a09a4e562a0cd6131c71e9d553a6b5f217a6 Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Wed, 4 Jul 2018 17:27:15 +0200 Subject: [PATCH] Added missing ib.h file --- include/villas/memory/ib.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/villas/memory/ib.h diff --git a/include/villas/memory/ib.h b/include/villas/memory/ib.h new file mode 100644 index 000000000..6ffa8c98f --- /dev/null +++ b/include/villas/memory/ib.h @@ -0,0 +1,31 @@ +/** Memory allocators. + * + * @file + * @author Dennis Potter + * @copyright 2018, Institute for Automation of Complex Power Systems, EONERC + * @license GNU General Public License (version 3) + * + * VILLASnode + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + *********************************************************************************/ + +#include + +struct memory_ib { + struct ibv_pd *pd; + struct memory_type *parent; +}; + +struct ibv_mr* memory_ib_get_mr(struct sample *smps);