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
eal: simplify meson build of common directory
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
rte_fbarray.h
diff --git
a/lib/librte_eal/common/include/rte_fbarray.h
b/lib/librte_eal/common/include/rte_fbarray.h
index
33841ca
..
6dccdbe
100644
(file)
--- a/
lib/librte_eal/common/include/rte_fbarray.h
+++ b/
lib/librte_eal/common/include/rte_fbarray.h
@@
-34,7
+34,6
@@
extern "C" {
#endif
extern "C" {
#endif
-#include <stdbool.h>
#include <stdio.h>
#include <rte_compat.h>
#include <stdio.h>
#include <rte_compat.h>
@@
-75,7
+74,8
@@
struct rte_fbarray {
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_init(struct rte_fbarray *arr, const char *name, unsigned int len,
unsigned int elt_sz);
rte_fbarray_init(struct rte_fbarray *arr, const char *name, unsigned int len,
unsigned int elt_sz);
@@
-97,7
+97,8
@@
rte_fbarray_init(struct rte_fbarray *arr, const char *name, unsigned int len,
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_attach(struct rte_fbarray *arr);
rte_fbarray_attach(struct rte_fbarray *arr);
@@
-118,7
+119,8
@@
rte_fbarray_attach(struct rte_fbarray *arr);
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_destroy(struct rte_fbarray *arr);
rte_fbarray_destroy(struct rte_fbarray *arr);
@@
-136,7
+138,8
@@
rte_fbarray_destroy(struct rte_fbarray *arr);
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_detach(struct rte_fbarray *arr);
rte_fbarray_detach(struct rte_fbarray *arr);
@@
-153,7
+156,8
@@
rte_fbarray_detach(struct rte_fbarray *arr);
* - non-NULL pointer on success.
* - NULL on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-NULL pointer on success.
* - NULL on failure, with ``rte_errno`` indicating reason for failure.
*/
-void * __rte_experimental
+__rte_experimental
+void *
rte_fbarray_get(const struct rte_fbarray *arr, unsigned int idx);
rte_fbarray_get(const struct rte_fbarray *arr, unsigned int idx);
@@
-170,7
+174,8
@@
rte_fbarray_get(const struct rte_fbarray *arr, unsigned int idx);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_idx(const struct rte_fbarray *arr, const void *elt);
rte_fbarray_find_idx(const struct rte_fbarray *arr, const void *elt);
@@
-187,7
+192,8
@@
rte_fbarray_find_idx(const struct rte_fbarray *arr, const void *elt);
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_set_used(struct rte_fbarray *arr, unsigned int idx);
rte_fbarray_set_used(struct rte_fbarray *arr, unsigned int idx);
@@
-204,7
+210,8
@@
rte_fbarray_set_used(struct rte_fbarray *arr, unsigned int idx);
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - 0 on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_set_free(struct rte_fbarray *arr, unsigned int idx);
rte_fbarray_set_free(struct rte_fbarray *arr, unsigned int idx);
@@
-222,7
+229,8
@@
rte_fbarray_set_free(struct rte_fbarray *arr, unsigned int idx);
* - 0 if element is unused.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - 0 if element is unused.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_is_used(struct rte_fbarray *arr, unsigned int idx);
rte_fbarray_is_used(struct rte_fbarray *arr, unsigned int idx);
@@
-239,7
+247,8
@@
rte_fbarray_is_used(struct rte_fbarray *arr, unsigned int idx);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_next_free(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_next_free(struct rte_fbarray *arr, unsigned int start);
@@
-256,7
+265,8
@@
rte_fbarray_find_next_free(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_next_used(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_next_used(struct rte_fbarray *arr, unsigned int start);
@@
-276,7
+286,8
@@
rte_fbarray_find_next_used(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_next_n_free(struct rte_fbarray *arr, unsigned int start,
unsigned int n);
rte_fbarray_find_next_n_free(struct rte_fbarray *arr, unsigned int start,
unsigned int n);
@@
-297,7
+308,8
@@
rte_fbarray_find_next_n_free(struct rte_fbarray *arr, unsigned int start,
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_next_n_used(struct rte_fbarray *arr, unsigned int start,
unsigned int n);
rte_fbarray_find_next_n_used(struct rte_fbarray *arr, unsigned int start,
unsigned int n);
@@
-315,7
+327,8
@@
rte_fbarray_find_next_n_used(struct rte_fbarray *arr, unsigned int start,
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_contig_free(struct rte_fbarray *arr,
unsigned int start);
rte_fbarray_find_contig_free(struct rte_fbarray *arr,
unsigned int start);
@@
-333,7
+346,8
@@
rte_fbarray_find_contig_free(struct rte_fbarray *arr,
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_contig_used(struct rte_fbarray *arr, unsigned int start);
/**
rte_fbarray_find_contig_used(struct rte_fbarray *arr, unsigned int start);
/**
@@
-349,7
+363,8
@@
rte_fbarray_find_contig_used(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_prev_free(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_prev_free(struct rte_fbarray *arr, unsigned int start);
@@
-366,7
+381,8
@@
rte_fbarray_find_prev_free(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_prev_used(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_prev_used(struct rte_fbarray *arr, unsigned int start);
@@
-387,7
+403,8
@@
rte_fbarray_find_prev_used(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_prev_n_free(struct rte_fbarray *arr, unsigned int start,
unsigned int n);
rte_fbarray_find_prev_n_free(struct rte_fbarray *arr, unsigned int start,
unsigned int n);
@@
-409,7
+426,8
@@
rte_fbarray_find_prev_n_free(struct rte_fbarray *arr, unsigned int start,
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_prev_n_used(struct rte_fbarray *arr, unsigned int start,
unsigned int n);
rte_fbarray_find_prev_n_used(struct rte_fbarray *arr, unsigned int start,
unsigned int n);
@@
-428,7
+446,8
@@
rte_fbarray_find_prev_n_used(struct rte_fbarray *arr, unsigned int start,
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_rev_contig_free(struct rte_fbarray *arr,
unsigned int start);
rte_fbarray_find_rev_contig_free(struct rte_fbarray *arr,
unsigned int start);
@@
-447,7
+466,8
@@
rte_fbarray_find_rev_contig_free(struct rte_fbarray *arr,
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_rev_contig_used(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_rev_contig_used(struct rte_fbarray *arr, unsigned int start);
@@
-464,7
+484,8
@@
rte_fbarray_find_rev_contig_used(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_biggest_free(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_biggest_free(struct rte_fbarray *arr, unsigned int start);
@@
-481,7
+502,8
@@
rte_fbarray_find_biggest_free(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_biggest_used(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_biggest_used(struct rte_fbarray *arr, unsigned int start);
@@
-499,7
+521,8
@@
rte_fbarray_find_biggest_used(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_rev_biggest_free(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_rev_biggest_free(struct rte_fbarray *arr, unsigned int start);
@@
-517,7
+540,8
@@
rte_fbarray_find_rev_biggest_free(struct rte_fbarray *arr, unsigned int start);
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
* - non-negative integer on success.
* - -1 on failure, with ``rte_errno`` indicating reason for failure.
*/
-int __rte_experimental
+__rte_experimental
+int
rte_fbarray_find_rev_biggest_used(struct rte_fbarray *arr, unsigned int start);
rte_fbarray_find_rev_biggest_used(struct rte_fbarray *arr, unsigned int start);
@@
-530,7
+554,8
@@
rte_fbarray_find_rev_biggest_used(struct rte_fbarray *arr, unsigned int start);
* @param f
* File object to dump information into.
*/
* @param f
* File object to dump information into.
*/
-void __rte_experimental
+__rte_experimental
+void
rte_fbarray_dump_metadata(struct rte_fbarray *arr, FILE *f);
#ifdef __cplusplus
rte_fbarray_dump_metadata(struct rte_fbarray *arr, FILE *f);
#ifdef __cplusplus