git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mem: introduce memzone freeing
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_memzone.h
diff --git
a/lib/librte_eal/common/include/rte_memzone.h
b/lib/librte_eal/common/include/rte_memzone.h
index
de5ae55
..
38e5f5b
100644
(file)
--- a/
lib/librte_eal/common/include/rte_memzone.h
+++ b/
lib/librte_eal/common/include/rte_memzone.h
@@
-255,6
+255,17
@@
const struct rte_memzone *rte_memzone_reserve_bounded(const char *name,
size_t len, int socket_id,
unsigned flags, unsigned align, unsigned bound);
size_t len, int socket_id,
unsigned flags, unsigned align, unsigned bound);
+/**
+ * Free a memzone.
+ *
+ * @param mz
+ * A pointer to the memzone
+ * @return
+ * -EINVAL - invalid parameter
+ * 0 - success
+ */
+int rte_memzone_free(const struct rte_memzone *mz);
+
/**
* Lookup for a memzone.
*
/**
* Lookup for a memzone.
*