DPDK
1.8.0
|
#include <sys/queue.h>
#include <stdio.h>
Data Structures | |
struct | rte_tailq_entry |
struct | rte_tailq_head |
Macros | |
#define | RTE_TAILQ_RESERVE(name, struct_name) (struct struct_name *)(&rte_eal_tailq_reserve(name)->tailq_head) |
#define | RTE_TAILQ_RESERVE_BY_IDX(idx, struct_name) (struct struct_name *)(&rte_eal_tailq_reserve_by_idx(idx)->tailq_head) |
#define | RTE_TAILQ_LOOKUP(name, struct_name) (struct struct_name *)(&rte_eal_tailq_lookup(name)->tailq_head) |
#define | RTE_TAILQ_LOOKUP_BY_IDX(idx, struct_name) (struct struct_name *)(&rte_eal_tailq_lookup_by_idx(idx)->tailq_head) |
Functions | |
TAILQ_HEAD (rte_tailq_entry_head, rte_tailq_entry) | |
struct rte_tailq_head * | rte_eal_tailq_reserve (const char *name) |
struct rte_tailq_head * | rte_eal_tailq_reserve_by_idx (const unsigned idx) |
void | rte_dump_tailq (FILE *f) |
struct rte_tailq_head * | rte_eal_tailq_lookup (const char *name) |
struct rte_tailq_head * | rte_eal_tailq_lookup_by_idx (const unsigned idx) |
Here defines rte_tailq APIs for only internal use
#define RTE_TAILQ_LOOKUP | ( | name, | |
struct_name | |||
) | (struct struct_name *)(&rte_eal_tailq_lookup(name)->tailq_head) |
Utility macro to make looking up a tailqueue for a particular struct easier.
name | The name of tailq |
struct_name | The name of the list type we are using. (Generally this is the same as the first parameter passed to TAILQ_HEAD macro) |
#define RTE_TAILQ_LOOKUP_BY_IDX | ( | idx, | |
struct_name | |||
) | (struct struct_name *)(&rte_eal_tailq_lookup_by_idx(idx)->tailq_head) |
Utility macro to make looking up a tailqueue for a particular struct easier.
idx | The tailq idx defined in rte_tail_t to be given to the tail queue. |
struct_name | The name of the list type we are using. (Generally this is the same as the first parameter passed to TAILQ_HEAD macro) |
#define RTE_TAILQ_RESERVE | ( | name, | |
struct_name | |||
) | (struct struct_name *)(&rte_eal_tailq_reserve(name)->tailq_head) |
Utility macro to make reserving a tailqueue for a particular struct easier.
name | The name to be given to the tailq - used by lookup to find it later |
struct_name | The name of the list type we are using. (Generally this is the same as the first parameter passed to TAILQ_HEAD macro) |
#define RTE_TAILQ_RESERVE_BY_IDX | ( | idx, | |
struct_name | |||
) | (struct struct_name *)(&rte_eal_tailq_reserve_by_idx(idx)->tailq_head) |
Utility macro to make reserving a tailqueue for a particular struct easier.
idx | The tailq idx defined in rte_tail_t to be given to the tail queue.
|
struct_name | The name of the list type we are using. (Generally this is the same as the first parameter passed to TAILQ_HEAD macro) |
void rte_dump_tailq | ( | FILE * | f | ) |
Dump tail queues to the console.
f | A pointer to a file for output |
|
read |
Lookup for a tail queue.
Get a pointer to a tail queue header of an already reserved tail queue identified by the name given as an argument. Note: this function, along with rte_tailq_reserve, is not multi-thread safe, and both these functions should only be called from a single thread at a time
name | The name of the queue. |
|
read |
Lookup for a tail queue.
Get a pointer to a tail queue header of an already reserved tail queue identified by the name given as an argument. Note: this function, along with rte_tailq_reserve, is not multi-thread safe, and both these functions should only be called from a single thread at a time
idx | The tailq idx defined in rte_tail_t to be given to the tail queue. |
|
read |
Reserve a slot in the tailq list for a particular tailq header Note: this function, along with rte_tailq_lookup, is not multi-thread safe, and both these functions should only be called from a single thread at a time
name | The name to be given to the tail queue. |
|
read |
Reserve a slot in the tailq list for a particular tailq header Note: this function, along with rte_tailq_lookup, is not multi-thread safe, and both these functions should only be called from a single thread at a time
idx | The tailq idx defined in rte_tail_t to be given to the tail queue. |
TAILQ_HEAD | ( | rte_tailq_entry_head | , |
rte_tailq_entry | |||
) |
dummy