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
memzone: add iterator function
[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
100233b
..
3a000e2
100644
(file)
--- a/
lib/librte_eal/common/include/rte_memzone.h
+++ b/
lib/librte_eal/common/include/rte_memzone.h
@@
-252,6
+252,17
@@
const struct rte_memzone *rte_memzone_lookup(const char *name);
*/
void rte_memzone_dump(FILE *);
*/
void rte_memzone_dump(FILE *);
+/**
+ * Walk list of all memzones
+ *
+ * @param func
+ * Iterator function
+ * @param arg
+ * Argument passed to iterator
+ */
+void rte_memzone_walk(void (*func)(const struct rte_memzone *, void *arg),
+ void *arg);
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif