DPDK
18.02.0
|
#include <rte_ethdev.h>
Go to the source code of this file.
Functions | |
const struct rte_memzone * | rte_eth_dma_zone_reserve (const struct rte_eth_dev *eth_dev, const char *name, uint16_t queue_id, size_t size, unsigned align, int socket_id) |
RTE Ethernet Device PMD API
These APIs for the use from Ethernet drivers, user applications shouldn't use them.
Definition in file rte_ethdev_driver.h.
const struct rte_memzone* rte_eth_dma_zone_reserve | ( | const struct rte_eth_dev * | eth_dev, |
const char * | name, | ||
uint16_t | queue_id, | ||
size_t | size, | ||
unsigned | align, | ||
int | socket_id | ||
) |
Create memzone for HW rings. malloc can't be used as the physical address is needed. If the memzone is already created, then this function returns a ptr to the old one.
eth_dev | The eth_dev pointer is the address of the rte_eth_dev structure |
name | The name of the memory zone |
queue_id | The index of the queue to add to name |
size | The sizeof of the memory area |
align | Alignment for resulting memzone. Must be a power of 2. |
socket_id | The socket_id argument is the socket identifier in case of NUMA. |