| rte_class.h(3) | Library Functions Manual | rte_class.h(3) |
rte_class.h
#include <rte_dev.h>
struct rte_class
#define RTE_REGISTER_CLASS(nm, cls)
typedef int(* rte_class_cmp_t) (const struct
rte_class *cls, const void *data)
RTE_TAILQ_HEAD (rte_class_list, rte_class)
struct rte_class * rte_class_find (const struct rte_class
*start, rte_class_cmp_t cmp, const void *data)
struct rte_class * rte_class_find_by_name (const char *name)
void rte_class_register (struct rte_class *cls)
void rte_class_unregister (struct rte_class *cls)
DPDK device class interface.
This file describes the interface of the device class abstraction layer.
A device class defines the type of function a device will be used for e.g.: Ethernet adapter (eth), cryptographic co-processor (crypto), etc.
Definition in file rte_class.h.
Value:.PP
RTE_INIT_PRIO(classinitfn_ ##nm, CLASS) \
{\
(cls).name = RTE_STR(nm); \
rte_class_register(&cls); \
}
Helper for Class registration. The constructor has lower priority than Bus constructors. The constructor has higher priority than PMD constructors.
Definition at line 111 of file rte_class.h.
Class comparison function.
Parameters
Returns
Definition at line 54 of file rte_class.h.
Double linked list of classes
Class iterator to find a particular class.
This function compares each registered class to find one that matches the data passed as parameter.
If the comparison function returns zero this function will stop iterating over any more classes. To continue a search the class of a previous search can be passed via the start parameter.
Parameters
Returns
Find the registered class for a given name.
Register a Class handle.
Parameters
Unregister a Class handle.
Parameters
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |