CNDP  22.08.0
pktdev_driver.h File Reference
#include <sys/queue.h>
#include <cne_atomic.h>
#include <cne_common.h>

Go to the source code of this file.

Data Structures

struct  pktdev_driver


typedef int() pktdev_probe_t(lport_cfg_t *cfg)
typedef int() pktdev_remove_t(struct cne_pktdev *dev)


 TAILQ_HEAD (pktdev_driver_list, pktdev_driver)
void pktdev_register (struct pktdev_driver *driver)
CNDP_API void pktdev_release_port (struct cne_pktdev *dev)

Detailed Description

CNE pktdev PMD API

These APIs are used by pktdev drivers. Applications should not use them.

Definition in file pktdev_driver.h.

Typedef Documentation

◆ pktdev_probe_t

typedef int() pktdev_probe_t(lport_cfg_t *cfg)

Probe function called for each virtual device driver once.

Definition at line 30 of file pktdev_driver.h.

◆ pktdev_remove_t

typedef int() pktdev_remove_t(struct cne_pktdev *dev)

Remove function to remove a lport

Definition at line 35 of file pktdev_driver.h.

Function Documentation


TAILQ_HEAD ( pktdev_driver_list  ,

Double linked list of virtual device drivers.

◆ pktdev_register()

void pktdev_register ( struct pktdev_driver driver)

Register a virtual device driver.

driverA pointer to a pktdev_driver structure describing the driver to be registered.

◆ pktdev_release_port()

CNDP_API void pktdev_release_port ( struct cne_pktdev *  dev)

Release the port or pktdev structure

devThe pktdev internal release structure pointer